[Ffmpeg-devel] [PATCH] Always link the faacDecClose() function - solves memory leak

Diego 'Flameeyes' Pettenò flameeyes
Sun Mar 4 02:54:18 CET 2007


The attached patch moves the load of Close() function from faacDecClose() 
(both with libfaad linked in, and with libfaad dlopened) from inside the 
#ifndef FAAD2_VERSION to the common case.

The Close function is already declared outside the #ifndef clause, and it is 
for sure present on FAAD 2.0, where FAAD2_VERSION is defined.

Without this patch, valgrind shown a memory leak of about 60KB when playing 
the start of an mp4 H264+aac file with ffplay (plus a series of 4KB less 
certain leaks that also disappear with this patch).

HTH,
-- 
Diego "Flameeyes" Petten?
http://farragut.flameeyes.is-a-geek.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-faad-close.patch
Type: text/x-diff
Size: 949 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070304/14ec3d20/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070304/14ec3d20/attachment.pgp>



More information about the ffmpeg-devel mailing list