1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 0fcf74f435 avformat/oggenc: Don't free AVStream's priv_data, fix memleak
For FLAC, Speex, Opus and VP8 the Ogg muxer allocates two buffers
for building the headers: The first for extradata in an Ogg-specific
format and the second contains a Vorbiscomment. These buffers are
reachable via pointers in the corresponding AVStream's priv_data.

If an error happens during building the headers, the AVStream's
priv_data would be freed. This is pointless in general as it would be
freed generically anyway, but here it is actively harmful: If the second
of the aforementioned allocations fails, the first buffer would leak
upon freeing priv_data.

This commit stops freeing priv_data manually, which allows the muxer to
properly clean up in the deinit function.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-04-20 18:43:53 +02:00
..
2020-03-17 16:08:13 +01:00
2020-03-17 22:46:36 +01:00
2020-03-17 16:05:49 +01:00
2020-03-17 16:04:42 +01:00
2020-03-17 16:08:13 +01:00
2020-04-20 15:59:32 +00:00
2020-04-19 02:37:46 +02:00
2020-02-25 19:57:16 +01:00
2020-03-14 22:07:27 +01:00
2020-03-17 22:46:36 +01:00
2020-04-10 12:22:09 +02:00
2020-04-08 16:23:07 +02:00
2020-03-08 19:08:04 +01:00
2020-03-17 16:08:13 +01:00
2020-03-12 18:47:39 +01:00