diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-15 23:21:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-04 04:58:57 +0100 |
commit | 3485e79f07d74e47ff00b60a68d609d37d0129ba (patch) | |
tree | adac3f5438c5d5637b5620e07d6742c50c286bdb /libavformat/aiffenc.c | |
parent | f0fb005f59f6febcf2ffc8140bdb7f136ac56add (diff) |
avformat/(aiff|flac|mov|mp3|tta)enc: Don't create unnecessary references
The packet given to muxers is not used afterwards; it is always
unreferenced by libavformat. Ergo muxers are allowed to keep
the references in the packets and e.g. move the ownership to
a packet list. This is what this commit does.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/aiffenc.c')
-rw-r--r-- | libavformat/aiffenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c index 24bc17400e..7bb0978a53 100644 --- a/libavformat/aiffenc.c +++ b/libavformat/aiffenc.c @@ -219,7 +219,7 @@ static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt) return 0; return avpriv_packet_list_put(&aiff->pict_list, &aiff->pict_list_end, - pkt, av_packet_ref, 0); + pkt, NULL, 0); } return 0; |