[FFmpeg-trac] #4049(avformat:new): av_write_trailer() - memory leaks on error - interleave_packet()
FFmpeg
trac at avcodec.org
Tue Oct 21 14:06:00 CEST 2014
#4049: av_write_trailer() - memory leaks on error - interleave_packet()
----------------------------------+---------------------------------------
Reporter: perexg | Type: defect
Status: new | Priority: important
Component: avformat | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
Summary of the bug:
The av_write_trails() function calls s->oformat->write_trailer() callback
only when interleave_packet() does not return an error.
In other case (storage is full, output file descriptor is unavailable),
the callback is not called, causing memory leaks, because muxers are
freeing their structures in the .write_trailer() callback
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4049>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list