diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-06-19 15:11:41 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-06-20 17:43:47 +0200 |
commit | d866787dacc04079daa73a1a836e849c56cded66 (patch) | |
tree | 8bfc269368957e70a5324d1920159438073a338f | |
parent | efc22e63e5899f5eda8ee50fc92ecd752aedce87 (diff) | |
download | ffmpeg-d866787dacc04079daa73a1a836e849c56cded66.tar.gz |
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>
-rw-r--r-- | libavcodec/hevc_sei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c index c881c4338c..e6ae777852 100644 --- a/libavcodec/hevc_sei.c +++ b/libavcodec/hevc_sei.c @@ -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]); } } } |