[FFmpeg-cvslog] avcodec/hevc: Dont turn 32bit timebases into negative numbers

Michael Niedermayer git at videolan.org
Sun Feb 16 00:04:02 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 15 23:09:55 2014 +0100| [bf2ce19e51fde57727a4ee33a4b3c2622f37a5c4] | committer: Michael Niedermayer

avcodec/hevc: Dont turn 32bit timebases into negative numbers

Fixes assertion failure
Fixes: 499f6ecaeae8e3f79a115a72c61ffd15-asan_static-oob_124a175_2792_cov_1782273879_RPLM_A_qualcomm_4.bit
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf2ce19e51fde57727a4ee33a4b3c2622f37a5c4
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 95f538f..c2531441 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -283,7 +283,7 @@ static int decode_lt_rps(HEVCContext *s, LongTermRPS *rps, GetBitContext *gb)
 static int set_sps(HEVCContext *s, const HEVCSPS *sps)
 {
     int ret;
-    int num = 0, den = 0;
+    unsigned num = 0, den = 0;
 
     pic_arrays_free(s);
     ret = pic_arrays_init(s, sps);



More information about the ffmpeg-cvslog mailing list