[Ffmpeg-devel] sse sigsegv and libavcodec/wmadec.c

Rich Felker dalias
Thu Dec 7 10:30:43 CET 2006


On Thu, Dec 07, 2006 at 09:05:08AM +0000, M?ns Rullg?rd wrote:
> Aaron Williams <aaronw at doofus.org> writes:
> 
> > Hi,
> >
> > Rich Felker wrote:
> >> On Wed, Dec 06, 2006 at 11:23:32PM +0100, Michael Niedermayer wrote:
> >>>> I might have been wrong, I think it can't align the stackframe
> >>>> variables. One solution would be to move them to the context if that is
> >>>> an acceptable solution.
> >>> same question why cant to align the stackframe while it apparently can on
> >>> linux?
> >> 
> >> See my other reply. gcc never aligns the stack frame, it just assumes
> >> it's already aligned (by glibc and all other calling code)... Typical
> >> GNU incest.
> >
> > What about a macro to allocate space on the stack and align it using
> > alloca?  Should be easy to do.
> 
> alloca is a nasty hack that should be used rarely, if ever.

Yes. It's also nonportable and possibly very slow on some archs where
it's emulated, and totally unrelated/unnecessary to the topic at hand.

Rich





More information about the ffmpeg-devel mailing list