diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-14 23:19:21 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-03-06 00:58:31 +0100 |
commit | c177520f675945bf884223ea72bc68b7a4bea30f (patch) | |
tree | 39d17d8619e59733be78be41d1cda3344aa95933 /libavformat/swf.c | |
parent | 518bbe9eac0da3bdf259e007e7031a7bccacbe8e (diff) | |
download | ffmpeg-c177520f675945bf884223ea72bc68b7a4bea30f.tar.gz |
h264_mp4toannexb: Copy one NAL unit at a time
If processing an input NAL unit triggers the insertion of data from
extradata in front of said NAL unit, the output packet is grown (i.e.
reallocated) once to accomodate both the new extradata as well as the
input NAL unit itself; this has been changed: In such a situation, the
packet is now grown twice. While this is bad for performance, it allows
to simplify the code and ultimately to stop reallocating the packet
altogether.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/swf.c')
0 files changed, 0 insertions, 0 deletions