diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-11 11:45:32 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-18 00:14:05 +0200 |
commit | 1004a92cd44404ad55a75509cd289a70fa03d333 (patch) | |
tree | c768e95e7885ff765efb1873d0b595684d92bbd2 /libavfilter/asrc_afirsrc.c | |
parent | ad1dc918a010d9d75e8babbe42a3996e1af00cb0 (diff) | |
download | ffmpeg-1004a92cd44404ad55a75509cd289a70fa03d333.tar.gz |
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>
Diffstat (limited to 'libavfilter/asrc_afirsrc.c')
0 files changed, 0 insertions, 0 deletions