hevc: Fix modulo operations
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Jan 2014 20:32:05 +0000 (21:32 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 21 Jan 2014 10:57:43 +0000 (11:57 +0100)
commitd5c15ebeaf1914ea5e3e0599d4316d7c4cf74434
tree9bcc7137c1cc71b0e6819b5bbed0607de9457eaa
parenta7a07cc98ac548297b5b0628cb81280e11952e3f
hevc: Fix modulo operations

Keep qp fields within the range.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/hevc.c
libavcodec/hevc.h
libavcodec/hevc_filter.c