diff options
author | Andreas Rheinhardt <[email protected]> | 2019-12-14 23:19:21 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2020-03-06 00:58:31 +0100 |
commit | c177520f675945bf884223ea72bc68b7a4bea30f (patch) | |
tree | 39d17d8619e59733be78be41d1cda3344aa95933 /libavcodec/vaapi_decode.c | |
parent | 518bbe9eac0da3bdf259e007e7031a7bccacbe8e (diff) |
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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavcodec/vaapi_decode.c')
0 files changed, 0 insertions, 0 deletions