Re: [libav-devel] [PATCH] x86: Fix linking with some or all of yasm, mmx, optimizations disabled

2012-08-30 Thread Måns Rullgård
Diego Biurrun writes: > Some optimized template functions reference optimized symbols, so they > must be explicitly disabled when those symbols are unavailable. > --- > libavcodec/x86/mpegaudiodec.c |2 ++ > libavcodec/x86/mpegvideoenc.c | 30 -- > libavcodec/x8

[libav-devel] [PATCH] x86: Fix linking with some or all of yasm, mmx, optimizations disabled

2012-08-30 Thread Diego Biurrun
Some optimized template functions reference optimized symbols, so they must be explicitly disabled when those symbols are unavailable. --- libavcodec/x86/mpegaudiodec.c |2 ++ libavcodec/x86/mpegvideoenc.c | 30 -- libavcodec/x86/rv40dsp_init.c |3 +++ 3 files

Re: [libav-devel] [PATCH] x86: Fix linking with some or all of yasm, mmx, optimizations disabled

2012-08-29 Thread Diego Biurrun
On Wed, Aug 29, 2012 at 11:34:01AM -0700, Ronald S. Bultje wrote: > On Wed, Aug 29, 2012 at 10:50 AM, Diego Biurrun wrote: > > +#if HAVE_MMX > > +if (mm_flags & AV_CPU_FLAG_MMX && HAVE_MMX) > > +s->dct_quantize = dct_quantize_MMX; > > +#endif > > +#if HAVE_MMXEXT > > +i

Re: [libav-devel] [PATCH] x86: Fix linking with some or all of yasm, mmx, optimizations disabled

2012-08-29 Thread Ronald S. Bultje
Hi, On Wed, Aug 29, 2012 at 10:50 AM, Diego Biurrun wrote: > +#if HAVE_MMX > +if (mm_flags & AV_CPU_FLAG_MMX && HAVE_MMX) > +s->dct_quantize = dct_quantize_MMX; > +#endif > +#if HAVE_MMXEXT > +if (mm_flags & AV_CPU_FLAG_MMXEXT && HAVE_MMXEXT) > +s->dct_quan

[libav-devel] [PATCH] x86: Fix linking with some or all of yasm, mmx, optimizations disabled

2012-08-29 Thread Diego Biurrun
Some optimized template functions reference optimized symbols, so they must be explicitly disabled when those symbols are unavailable. --- libavcodec/x86/mpegaudiodec.c |2 ++ libavcodec/x86/mpegvideoenc.c | 30 -- libavcodec/x86/rv40dsp_init.c |3 +++ 3 files