diff options
author | Ho Ming Shun <cyph1984@gmail.com> | 2021-09-24 17:04:37 +0800 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-12 16:55:06 +0100 |
commit | 6f0e8b998a91f0ad9a260b01d8ff29efdf3321d3 (patch) | |
tree | a728e0b74ea96a9bab2a49916ef6f704336fec59 /libavcodec/amfenc.c | |
parent | b54377b3a7cd427bc121af003f12c36a32169a74 (diff) | |
download | ffmpeg-6f0e8b998a91f0ad9a260b01d8ff29efdf3321d3.tar.gz |
avcodec/mmaldec: re-use AVPacket for extra_data
extra_data and normal packets (from ff_decode_get_packet) processing do
not overlap, thus we can re-use the spare AVPacket to send to
ffmmal_add_packet.
Furthermore, this removes allocation of AVPacket on the stack and stops
using deprecated av_init_packet.
Tested-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Ho Ming Shun <cyph1984@gmail.com>
Diffstat (limited to 'libavcodec/amfenc.c')
0 files changed, 0 insertions, 0 deletions