On 10/20/2019 9:46 AM, James Almer wrote: > Despite the doxy stating that it's called when the muxer is destroyed, > this was not true in practice. It's only called by av_write_trailer() > and on init() failure. > > An AVFormatContext may be closed without writing the trailer if errors > ocurred while muxing packets, so in order to prevent memory leaks, it > should effectively be called when freeing the muxer. > > Signed-off-by: James Almer <jamr...@gmail.com> > --- > libavformat/mux.c | 17 ++++++++++------- > libavformat/utils.c | 3 +++ > 2 files changed, 13 insertions(+), 7 deletions(-)
Applied. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".