[FFmpeg-devel] [PATCH 11/15] h264_mp4toannexb: Stop reallocating the output buffer

Michael Niedermayer michael at niedermayer.cc
Sat Dec 14 18:24:18 EET 2019

On Thu, Oct 17, 2019 at 10:29:41AM +0200, Andreas Rheinhardt wrote:
> 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.
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/h264_mp4toannexb_bsf.c | 124 +++++++++++++++++-------------
>  1 file changed, 72 insertions(+), 52 deletions(-)

This fixes 19322/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_MP4TOANNEXB_fuzzer-5688407821123584

Do you have a new patchset ? (theres a blocking comment on patch #2)


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191214/88ad0504/attachment.sig>

More information about the ffmpeg-devel mailing list