<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>I am using ffmpeg version git-2013-06-14-7fff3df and when I use valgrind on a program using ffmpeg, it displays the following messages :</div><div><br></div><div><div>==19153== 288 bytes in 1 blocks are possibly lost in loss record 112 of 223</div><div>==19153== at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)</div><div>==19153== by 0x4012074: _dl_allocate_tls (dl-tls.c:297)</div><div>==19153== by 0x4E3AABC: pthread_create@@GLIBC_2.2.5 (allocatestack.c:571)</div><div>==19153== by 0x5444F63: ??? (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x5387EE3: ??? (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x5388005: ffurl_open (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x538A0FA: avio_open2 (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x544FAE7: avformat_open_input (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x401ACE: Capture::initFluxFFmpeg() (Capture.cpp:147)</div><div>==19153== by 0x4017DA: Capture::Capture(std::string const&) (Capture.cpp:28)</div><div>==19153== by 0x403BBE: main (test.cpp:43)</div><div>==19153== </div><div>==19153== 1,440 bytes in 5 blocks are possibly lost in loss record 122 of 223</div><div>==19153== at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)</div><div>==19153== by 0x4012074: _dl_allocate_tls (dl-tls.c:297)</div><div>==19153== by 0x4E3AABC: pthread_create@@GLIBC_2.2.5 (allocatestack.c:571)</div><div>==19153== by 0x5ABC21F: ??? (in /usr/local/lib/libavcodec.so.55.16.100)</div><div>==19153== by 0x5B590DA: avcodec_open2 (in /usr/local/lib/libavcodec.so.55.16.100)</div><div>==19153== by 0x401D65: Capture::initStreamVideo() (Capture.cpp:224)</div><div>==19153== by 0x4017E6: Capture::Capture(std::string const&) (Capture.cpp:29)</div><div>==19153== by 0x403BBE: main (test.cpp:43)</div><div>==19153== </div><div>==19153== 212,866 (1,176 direct, 211,690 indirect) bytes in 49 blocks are definitely lost in loss record 212 of 223</div><div>==19153== at 0x4C29BE8: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)</div><div>==19153== by 0x4C29C97: posix_memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)</div><div>==19153== by 0x772DEC1: av_malloc (in /usr/local/lib/libavutil.so.52.35.101)</div><div>==19153== by 0x772E085: av_mallocz (in /usr/local/lib/libavutil.so.52.35.101)</div><div>==19153== by 0x77238E7: av_buffer_create (in /usr/local/lib/libavutil.so.52.35.101)</div><div>==19153== by 0x7723C79: av_buffer_realloc (in /usr/local/lib/libavutil.so.52.35.101)</div><div>==19153== by 0x579874E: ??? (in /usr/local/lib/libavcodec.so.55.16.100)</div><div>==19153== by 0x579884D: av_dup_packet (in /usr/local/lib/libavcodec.so.55.16.100)</div><div>==19153== by 0x544AE68: ??? (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x544B19A: ??? (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x544CB0E: avformat_find_stream_info (in /usr/local/lib/libavformat.so.55.8.102)</div><div>==19153== by 0x401B20: Capture::initFluxFFmpeg() (Capture.cpp:155)</div><div><br></div><div><div>While using the functions :</div><div><ul><li><span style="font-size: 12pt;"> avformat_find_stream_info. I closed the AvFormatContext using avformat_free_context.</span></li><li><span style="font-size: 12pt;"> avcodec_open2. I closed the AVCodecContext using avcodec_close.</span></li></ul></div><div>Are they known bugs ? How could I solve it ?</div></div><br><div style="text-align:center;">Thanks,</div><div style="text-align:left;">Guillaume Bersac</div><div style="text-align:left;">237bis rue de Pessac</div><div style="text-align:left;">33000 Bordeaux</div><div style="text-align:left;">06.65.30.89.43</div><div><br></div></div> </div></body>
</html>