[Ffmpeg-devel] [PATCH] plain malloc in output_example.c

Michael Niedermayer michaelni
Sun Aug 20 08:53:50 CEST 2006


Hi

On Sun, Aug 20, 2006 at 12:00:14AM -0300, Ramiro Polla wrote:
> Hello,
> 
> Shouldn't output_example.c use av_malloc() instead of plain malloc()? It
> uses av_free(), so when --enable-memalign-hack is enabled, it allocates
> an unaligned buffer, and tries to free it with the memalign hack.
> 
> Attached patch makes it work with --enable-memalign-hack.

instead of changing several malloc() change one av_free()
additionally thats not the only case in output_example.c where
malloc() and av_free() is mixed so unless you fix all, the
fix wont really fix anyhing

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list