You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h2645_parse: don't overread AnnexB NALs within an avc stream
We know the maximum size of an AnnexB NAL, signaling it as the maximum NAL size allows ff_h2645_extract_rbsp to determine the correct size.
This commit is contained in:
@@ -293,7 +293,7 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
|
|||||||
|
|
||||||
buf += 3;
|
buf += 3;
|
||||||
length -= 3;
|
length -= 3;
|
||||||
extract_length = length;
|
extract_length = FFMIN(length, next_avc - buf);
|
||||||
|
|
||||||
if (buf >= next_avc) {
|
if (buf >= next_avc) {
|
||||||
/* skip to the start of the next NAL */
|
/* skip to the start of the next NAL */
|
||||||
|
Reference in New Issue
Block a user