diff options
author | Andreas Rheinhardt <[email protected]> | 2019-06-17 05:42:13 +0200 |
---|---|---|
committer | Mark Thompson <[email protected]> | 2019-07-07 22:17:07 +0100 |
commit | a72cc47a275a62c9a36f9df8c912e6f1cd820fc7 (patch) | |
tree | 0c313dcf817b7adec2c6ba8f491093636b303263 /libavformat/mpjpeg.c | |
parent | 36fcdc3fbe089bc01066e2afa5645f383025f0ec (diff) |
h264_metadata: Avoid allocations and copies of packet structures
This commit changes h264_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 <[email protected]>
Diffstat (limited to 'libavformat/mpjpeg.c')
0 files changed, 0 insertions, 0 deletions