Commit ed06e5d9 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Vittorio Giovara

hevc: Do not turn 32bit timebases into negative numbers

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
parent 6cc94e97
...@@ -388,7 +388,7 @@ static int decode_lt_rps(HEVCContext *s, LongTermRPS *rps, GetBitContext *gb) ...@@ -388,7 +388,7 @@ static int decode_lt_rps(HEVCContext *s, LongTermRPS *rps, GetBitContext *gb)
static int set_sps(HEVCContext *s, const HEVCSPS *sps) static int set_sps(HEVCContext *s, const HEVCSPS *sps)
{ {
int ret; int ret;
int num = 0, den = 0; unsigned int num = 0, den = 0;
pic_arrays_free(s); pic_arrays_free(s);
ret = pic_arrays_init(s, sps); ret = pic_arrays_init(s, sps);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment