Merge commit 'f0259a587ee3419dd894873ea617b4c98eeaca1c'
* commit 'f0259a587ee3419dd894873ea617b4c98eeaca1c': h264: check buffer size before accessing it Conflicts: libavcodec/h264.c See: ea0ac11e52b9cf5264f3d4eb7543e760c2a5fbb4 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
fe540ae6b7
@ -4755,7 +4755,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
|
||||
h->workaround_bugs |= FF_BUG_TRUNCATED;
|
||||
|
||||
if (!(h->workaround_bugs & FF_BUG_TRUNCATED))
|
||||
while(dst_length > 0 && ptr[dst_length - 1] == 0)
|
||||
while (dst_length > 0 && ptr[dst_length - 1] == 0)
|
||||
dst_length--;
|
||||
bit_length = !dst_length ? 0
|
||||
: (8 * dst_length -
|
||||
|
Loading…
x
Reference in New Issue
Block a user