[FFmpeg-cvslog] hevc: Do not turn 32bit timebases into negative numbers

Michael Niedermayer git at videolan.org
Tue Mar 11 11:57:13 CET 2014


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 15 23:09:55 2014 +0100| [fa6b99d351ed483766a875054676a56fd8459774] | committer: Reinhard Tartler

hevc: Do not turn 32bit timebases into negative numbers

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
(cherry picked from commit ed06e5d92b4c67b49068d538461fbbe0a53a8c5e)

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

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

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);



More information about the ffmpeg-cvslog mailing list