diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-06-20 01:45:05 +0200 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-07-07 22:59:20 +0100 |
commit | ddd53ef66d6a714f02ca553b9300db4dd4c16ae1 (patch) | |
tree | 0b14ee2bd64e05e483c540ceba4421277a850a8e /libavformat/utils.c | |
parent | 9362f1a982682ebddfd477f8562c4065bb531333 (diff) | |
download | ffmpeg-ddd53ef66d6a714f02ca553b9300db4dd4c16ae1.tar.gz |
h265_metadata: Avoid allocations and copies of packet structures
This commit changes h265_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 'libavformat/utils.c')
0 files changed, 0 insertions, 0 deletions