1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 029cf6a91c 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>
2020-11-26 13:32:30 +01:00
..
2020-10-03 21:50:59 +02:00
2020-11-04 23:30:53 +01:00
2020-11-09 14:58:38 +10:00
2020-10-25 23:44:26 +10:00
2020-11-09 14:58:38 +10:00
2020-10-06 00:01:35 +08:00
2020-10-06 00:01:27 +08:00
2020-11-11 17:05:24 +01:00
2020-10-24 19:11:12 +02:00
2020-11-04 23:30:53 +01:00
2020-10-20 13:00:04 +02:00
2020-11-21 22:09:51 +01:00
2020-10-07 22:16:09 +02:00
2020-09-24 13:38:28 +02:00
2020-10-25 09:49:26 +01:00
2020-09-18 11:30:03 +02:00
2020-11-09 14:58:38 +10:00
2020-09-03 18:11:00 +02:00
2020-11-22 17:45:17 +01:00
2020-09-03 18:03:18 +02:00
2020-10-24 19:11:12 +02:00
2020-10-25 09:49:31 +01:00
2020-11-21 10:13:36 -05:00
2020-09-13 16:05:01 +02:00
2020-10-22 20:53:57 +08:00
2020-07-26 16:47:01 +02:00
2020-10-21 17:21:41 +02:00