[x264-devel] Re: [patch] AMD64 support for x264 codec
Josef Zlomek
josef.zlomek at xeris.cz
Tue Apr 19 19:08:47 CEST 2005
> > It works nicely with gcc -O1, but if I set -O2 or higher I get a segfault
> > (gdb log attached). I have no idea what's causing this; the log seems
> > impossible to me.
>
> I have run into this too (with gcc 3.3.5).
> It looks like a bug in compiler that miscompiles some function, probably
> refine_subpel.
> GCC flags "-O3 -fno-expensive-optimizations" work fine for me.
I have investigated this more deeply and found that it was my bug.
I have a wrong order of push/pop instructions in x264_pixel_avg_*
so the result was that values of r12 and r13 were switched.
The patch at http://zlomek.jikos.cz/x264-amd64.patch is fixed.
Josef
--
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html
More information about the x264-devel
mailing list