<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Okay, so I compiled ffmpeg with those flags:<br>
/configure \<br>
--prefix=/usr \<br>
--shlibdir=/usr/lib \<br>
--disable-static \<br>
--enable-debug=3 \<br>
--disable-optimizations \<br>
--disable-stripping \<br>
--enable-gpl \<br>
--enable-gnutls \<br>
--enable-libass \<br>
--enable-libfdk-aac \<br>
--enable-libfreetype \<br>
--enable-libmp3lame \<br>
--enable-libopus \<br>
--enable-libtheora \<br>
--enable-libvorbis \<br>
--enable-libvpx \<br>
--enable-libx264 \<br>
--enable-libx265 \<br>
--enable-nonfree \<br>
--enable-shared \<br>
--enable-x11grab \<br>
And I cmake'd my program with -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_C_FLAGS=-fsanitize=address, but I still only have this debug
trace:<br>
<br>
==17320==ERROR: LeakSanitizer: detected memory leaks<br>
<br>
Direct leak of 664 byte(s) in 2 object(s) allocated from:<br>
#0 0x7f5aaf43e386 in __interceptor_posix_memalign
/build/gcc-multilib/src/gcc-5.2.0/libsanitizer/asan/asan_malloc_linux.cc:105<br>
#1 0x7f5aaea93b0f in av_malloc
(/usr/lib/libavutil.so.54+0x1db0f)<br>
<br>
Indirect leak of 4769 byte(s) in 2 object(s) allocated from:<br>
#0 0x7f5aaf43e386 in __interceptor_posix_memalign
/build/gcc-multilib/src/gcc-5.2.0/libsanitizer/asan/asan_malloc_linux.cc:105<br>
#1 0x7f5aaea93b0f in av_malloc
(/usr/lib/libavutil.so.54+0x1db0f)<br>
<br>
SUMMARY: AddressSanitizer: 5433 byte(s) leaked in 4 allocation(s).<br>
<br>
<div class="moz-cite-prefix">The 29/08/2015 17:10, Carl Eugen Hoyos
wrote:<br>
</div>
<blockquote
cite="mid:CAA2GJqUvZDMiZNmajBuTmSP=tpPWNsMx3KmgZtqMWqTQdp=95Q@mail.gmail.com"
type="cite">
<pre wrap=""><i>
</i>First step (that is practically always sufficient)
is to find out where exactly (!) the memory was
allocated: We all know that it was inside mem.c
but the important question is what called
av_malloc().
Either use a static binary or use
--disable-stripping for a useful debug build.
Carl Eugen
</pre>
</blockquote>
<br>
</body>
</html>