ffmpeg/libavformat
Andreas Rheinhardt e30b61c261 avformat/flacenc: Fix memleak when writing attached pictures fails
The FLAC muxer currently stores an attached picture corresponding to an
AVStream in AVStream.priv_data. The AVPacket contained therein is
unreferenced after it has been written. The AVPacket structure itself is
then freed generically as AVStream.priv_data.

And this can lead to memleaks if an attached picture is not written:
It might be because the trailer is never written or because writing
a previous attached picture failed in case error_recognition is set
to explode.

Therefore free the packets properly (i.e. with av_packet_free())
in the muxer's deinit function.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 029cf6a91ceb849f31f575111070a113c53b29ee)
2021-02-27 07:20:59 +01:00
..
2021-02-20 14:21:24 +01:00
2021-02-02 14:18:21 +01:00
2020-05-31 00:55:12 +02:00
2020-11-08 00:26:11 +10:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2020-05-30 18:02:55 +02:00
2020-05-19 20:09:25 +02:00
2021-02-02 14:18:21 +01:00
2020-05-31 00:55:12 +02:00
2020-04-19 02:37:46 +02:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2020-06-06 00:25:00 +02:00
2020-06-06 00:25:00 +02:00
2020-05-19 20:09:25 +02:00
2021-02-20 14:21:24 +01:00
2020-06-04 10:52:42 +02:00
2020-06-14 22:02:34 +02:00
2021-02-02 14:18:21 +01:00