[FFmpeg-cvslog] hevc: Do not turn 32bit timebases into negative numbers
Michael Niedermayer
git at videolan.org
Sun Mar 9 21:41:22 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 15 23:09:55 2014 +0100| [ed06e5d92b4c67b49068d538461fbbe0a53a8c5e] | committer: Vittorio Giovara
hevc: Do not turn 32bit timebases into negative numbers
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed06e5d92b4c67b49068d538461fbbe0a53a8c5e
---
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