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

Luca Barbato lu_zero
Sun Aug 20 17:25:37 CEST 2006


Michael Niedermayer wrote:
> 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()

malloc could be wrong... I haven't checked yet how much.
Think of the SIMD code...

lu

-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero





More information about the ffmpeg-devel mailing list