avcodec/hevc_sei: Use get_bits_long() for time_offset_value

Fixes: assertion failure
Fixes: crash_1

Found-by: Thuan Pham <tpham.unimelb@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2021-06-19 15:11:41 +02:00
parent efc22e63e5
commit d866787dac

View File

@ -386,7 +386,7 @@ static int decode_nal_sei_timecode(HEVCSEITimeCode *s, GetBitContext *gb)
s->time_offset_length[i] = get_bits(gb, 5);
if (s->time_offset_length[i] > 0) {
s->time_offset_value[i] = get_bits(gb, s->time_offset_length[i]);
s->time_offset_value[i] = get_bits_long(gb, s->time_offset_length[i]);
}
}
}