summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-06-19 15:11:41 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-06-20 17:43:47 +0200
commitd866787dacc04079daa73a1a836e849c56cded66 (patch)
tree8bfc269368957e70a5324d1920159438073a338f /libavcodec
parentefc22e63e5899f5eda8ee50fc92ecd752aedce87 (diff)
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc_sei.c2
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]);
}
}
}