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

2019-12-14 Thread Michael Niedermayer
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

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

2019-10-17 Thread Andreas Rheinhardt
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 wri