1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-20 07:48:15 +02:00
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
2019-12-12 19:25:33 +01:00
2020-05-31 00:55:12 +02:00
2020-11-08 00:26:11 +10:00
2019-12-12 19:25:33 +01:00
2020-03-17 22:46:36 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2017-09-20 03:31:48 +02:00
2021-02-02 14:18:21 +01:00
2017-09-01 18:52:56 +08:00
2020-03-17 16:05:49 +01:00
2021-02-02 14:18:21 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2020-03-17 16:08:13 +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
2019-10-08 13:47:16 +08:00
2020-04-19 02:37:46 +02:00
2019-09-27 12:15:50 +02:00
2021-02-02 14:18:21 +01:00
2020-03-17 22:46:36 +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
2018-02-11 20:03:33 +01:00
2018-02-11 20:03:33 +01:00
2020-05-19 20:09:25 +02:00
2020-02-16 12:54:57 +01:00
2017-04-25 15:39:10 +02:00
2018-05-21 19:43:04 -03:00
2018-05-21 19:43:04 -03:00
2019-03-20 18:38:48 +01: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
2019-12-12 19:25:33 +01:00
2020-03-08 19:08:04 +01:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00
2021-02-02 14:18:21 +01:00