[SCM] libav/experimental: hevc: Do not turn 32bit timebases into negative numbers

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:01:53 UTC 2014


The following commit has been merged in the experimental branch:
commit ed06e5d92b4c67b49068d538461fbbe0a53a8c5e
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Sat Feb 15 23:09:55 2014 +0100

    hevc: Do not turn 32bit timebases into negative numbers
    
    Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index f8f7e64..49ed285 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -388,7 +388,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 int num = 0, den = 0;
 
     pic_arrays_free(s);
     ret = pic_arrays_init(s, sps);

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list