diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 95f538fec4..c253144118 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);