diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-06-17 05:42:07 +0200 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-07-07 22:17:06 +0100 |
commit | 7549f0ac1baffabfa964962c0c0067e8da692982 (patch) | |
tree | 8e3d97c45f86cd9c7ff9af7fb4ff4815311f596e /libavcodec/xl.c | |
parent | 1e93f5060f6f6f7a8729022d0120004902b4f64b (diff) | |
download | ffmpeg-7549f0ac1baffabfa964962c0c0067e8da692982.tar.gz |
av1_metadata: Avoid allocations and copies of packet structures
This commit changes av1_metadata to (a) use ff_bsf_get_packet_ref
instead of ff_bsf_get_packet (thereby avoiding one malloc and free per
filtered packet) and (b) to use only one packet structure at all,
thereby avoiding a call to av_packet_copy_props.
(b) has been made possible by the recent changes to ff_cbs_write_packet.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/xl.c')
0 files changed, 0 insertions, 0 deletions