diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-14 23:19:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-03-06 00:58:31 +0100 |
commit | cb47c6c6148d88ffd2f4e90e7d0b6decb23e350f (patch) | |
tree | 2c4534ff2b33c60dff7954aac045979035b5cf95 /libavcodec/vp6data.h | |
parent | 84c87e41a68dc4164a2a130504cd9c5b4413b744 (diff) | |
download | ffmpeg-cb47c6c6148d88ffd2f4e90e7d0b6decb23e350f.tar.gz |
h264_mp4toannexb: Stop reallocating the output buffer
Up until now, h264_mp4toannexb would grow the output packet's buffer by
the desired amount every time another NAL unit of the input packet has
been read; this commit changes this: The input buffer is now essentially
parsed twice, once to determine the final size of the output packet and
once to write the output packet's data.
Fixes: Timeout
Fixes: 19322/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_MP4TOANNEXB_fuzzer-5688407821123584
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vp6data.h')
0 files changed, 0 insertions, 0 deletions