summaryrefslogtreecommitdiff
path: root/libavcodec/filter_units_bsf.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-06-17 05:42:07 +0200
committerMark Thompson <sw@jkqxz.net>2019-07-07 22:17:06 +0100
commit7549f0ac1baffabfa964962c0c0067e8da692982 (patch)
tree8e3d97c45f86cd9c7ff9af7fb4ff4815311f596e /libavcodec/filter_units_bsf.c
parent1e93f5060f6f6f7a8729022d0120004902b4f64b (diff)
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/filter_units_bsf.c')
0 files changed, 0 insertions, 0 deletions