[FFmpeg-devel] Stack variables alignment check in libavcodec/dsputil.c

Michael Niedermayer michaelni
Mon Aug 13 00:52:56 CEST 2007


Hi

On Sun, Aug 12, 2007 at 02:39:36PM -0300, Ramiro Polla wrote:
[...]
>>   
>>>> what effect does it have on object size?
>>>>
>>>>         
>>> .text:    unpatched patched
>>> dsputil.o 0004e270 0004e280
>>> pthread.o 000003c0 000003d0
>>> utils.o   000029d0 00002a30
>>>     
>>
>> 128 bytes difference
>>
>> please add the realignment unconditionally! 128 bytes arent worth the
>> time users might end up spending due to some random crash (as well as the
>> number of bugreports we might get) and as someone else already said the 
>> ABI does not gurantee 16byte alignment so the realignment is needed
>>
>>   
>
> Ok. Attached patch sets it unconditionally for every platform and OS. 
> Should we make a list in configure only for the platforms that need it, or 
> is this ok?
> Patch also adds avcodec_open, which I missed yesterday, and a note in 
> ff_check_alignment.

ok

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

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070813/5978aca1/attachment.pgp>



More information about the ffmpeg-devel mailing list