[FFmpeg-devel] Compiling with Intel Compiler
Gregoire Favre
gregoire.favre
Tue Aug 26 19:57:07 CEST 2008
On Tue, Aug 26, 2008 at 03:22:54PM +0000, Carl Eugen Hoyos wrote:
Hello :-)
> You can't compile ffmpeg out of the box with icc if you enable-swscale.
> Following patch is a workaround.
Thanks you very much, with your patch I got it compiled, and I got less
glitches when watching ASTRA HD/Arte HD with vdr and xine than I got
with gcc-4.3.1 (my core 2 duo @ 2.4 GHz isn't powerfull enough to play
it, at least till both cores get fully used).
I compiled with -O3 -xT -gcc -mtune=core2 in case that's could be
improved.
(In case anyone would like to test a sample from Arte HD :
http://rapidshare.com/files/138962028/001.vdr.html but that's a
completly different story so I stop here my wrong ml email...).
> Carl Eugen
>
> Index: libswscale/yuv2rgb.c
> ===================================================================
> --- libswscale/yuv2rgb.c (Revision 27482)
> +++ libswscale/yuv2rgb.c (Arbeitskopie)
> @@ -157,6 +157,9 @@
>
> // The volatile is required because gcc otherwise optimizes some writes away
> // not knowing that these are read in the ASM block.
> +#ifdef __ICC
> +#define static
> +#endif
> static volatile uint64_t attribute_used __attribute__((aligned(8))) b5Dither;
> static volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
> static volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
--
Gr?goire FAVRE http://gregoire.favre.googlepages.com http://www.gnupg.org
http://picasaweb.google.com/Gregoire.Favre
More information about the ffmpeg-devel
mailing list