[FFmpeg-devel] Unaligned arrays in snow.c

Michael Niedermayer michaelni
Sun Nov 23 19:27:04 CET 2008


On Sun, Nov 23, 2008 at 05:00:32PM +0000, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> 
> > On Sat, Nov 22, 2008 at 10:46:14PM +0000, M?ns Rullg?rd wrote:
> >> 
> >> A few functions in snow.c declare arrays on the stack, which are then
> >> passed to dsputil functions requiring 16-byte alignment.  Searching
> >> for "FIXME align" finds them.  This is crashing on ARM.
> >> 
> >> What is the correct fix for this?
> >
> > Move them into the context
> 
> The size is variable.

av_malloc() ...


> 
> > or use the align #defines (and fix the compiler if needed)
> 
> You know that doesn't work for alignment > 8, and you know that fixing
> the compiler is close to impossible.

yes, i just awnsered your question, dont blame me if all the solutions suck

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

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20081123/2b51d1b0/attachment.pgp>



More information about the ffmpeg-devel mailing list