1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 1004a92cd4 avformat/mux: Fix leaks on error when writing noninterleaved uncoded frames
If writing uncoded frames in noninterleaved mode fails at the preparatory
steps (i.e. before it reaches write_packet()), the packet would not be
unreferenced and the frame would leak. This is fixed by unreferencing
the packet in write_uncoded_frame_internal() instead.

This also makes it possible to remove the unreferencing in
write_packet() itself: In noninterleaved mode frames are now freed in
write_uncoded_frame_internal(), while they are freed in interleaved
mode when their containing packet gets unreferenced (like normal
packets).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-04-18 00:14:05 +02:00
..
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:08:13 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-08-13 15:38:57 +02:00
2020-03-17 16:05:49 +01:00
2019-12-25 22:10:47 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2020-03-17 16:08:13 +01:00
2019-12-11 16:24:16 +01:00
2020-02-15 10:55:33 +01:00
2019-12-12 19:25:33 +01:00
2019-10-08 13:47:16 +08:00
2019-12-12 19:25:33 +01:00
2020-02-25 19:57:16 +01:00
2019-12-12 19:25:33 +01:00
2019-09-27 12:15:50 +02:00
2020-03-14 22:07:27 +01:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2020-04-10 12:22:09 +02:00
2020-02-16 12:54:57 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-03-20 18:38:48 +01:00
2020-04-08 16:23:07 +02:00
2019-12-12 19:25:33 +01:00
2020-03-08 19:08:04 +01:00
2020-03-17 16:08:13 +01:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00