[FFmpeg-trac] #7827(avformat:new): libavformat/libavcodec might leak some memory when muxing a flac stream into a matroska container
FFmpeg
trac at avcodec.org
Sun Apr 7 12:26:35 EEST 2019
#7827: libavformat/libavcodec might leak some memory when muxing a flac stream
into a matroska container
------------------------------------+------------------------------------
Reporter: pbelkner | Owner:
Type: defect | Status: new
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: mkv leak | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by pbelkner):
According to my test this should fix the issue:
{{{
peter at debian-9:~$ valgrind --leak-check=yes muxing ./muxing.mkv
==6378== Memcheck, a memory error detector
==6378== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==6378== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright
info
==6378== Command: muxing ./muxing.mkv
==6378==
Output #0, matroska, to './muxing.mkv':
Stream #0:0: Video: mpeg4, yuv420p, 352x288, q=2-31, 400 kb/s, 25 tbn
Stream #0:1: Audio: flac, 44100 Hz, stereo, s16, 64 kb/s
pts:0 pts_time:0 dts:0 dts_time:0 duration:0 duration_time:0
stream_index:0
pts:0 pts_time:0 dts:0 dts_time:0 duration:104 duration_time:0.104
stream_index:1
...
pts:9960 pts_time:9.96 dts:9960 dts_time:9.96 duration:0 duration_time:0
stream_index:0
pts:10031 pts_time:10.031 dts:10031 dts_time:10.031 duration:0
duration_time:0 stream_index:1
==6378==
==6378== HEAP SUMMARY:
==6378== in use at exit: 0 bytes in 0 blocks
==6378== total heap usage: 19,437 allocs, 19,437 frees, 12,457,158 bytes
allocated
==6378==
==6378== All heap blocks were freed -- no leaks are possible
==6378==
==6378== For counts of detected and suppressed errors, rerun with: -v
==6378== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
peter at debian-9:~$
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7827#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list