diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-06-17 05:42:11 +0200 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2019-07-07 22:17:07 +0100 |
commit | b0810454e473dd321a27c43de2d0e9d02fdba556 (patch) | |
tree | 4564345d67710217c4476d22ce9ebe05307a10e4 /libavcodec/avdct.h | |
parent | 57f9bc90ae0993768c3ee70c5d9041aecc8593ed (diff) | |
download | ffmpeg-b0810454e473dd321a27c43de2d0e9d02fdba556.tar.gz |
filter_units: Avoid allocations and copies of packet structures
This commit changes filter_units 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 (or, in case of
passthrough, to av_packet_move_ref).
(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/avdct.h')
0 files changed, 0 insertions, 0 deletions