[FFmpeg-devel] [PATCH] Assign unique values to AV_CPU_FLAG_IWMMXT and AV_CPU_FLAG_ALTIVEC.
Wed Sep 8 17:32:06 CEST 2010
On Wed, Sep 08, 2010 at 09:55:04AM -0400, Ronald S. Bultje wrote:
> On Wed, Sep 8, 2010 at 7:44 AM, Janne Grunau <janne-ffmpeg at jannau.net> wrote:
> > if (mm_flags && FF_MM_MMX)
> > ? ? ? ?cpuflags |= SWS_CPU_CAPS_MMX;
> > if (mm_flags && FF_MM_ALTIVEC)
> > ? ? ? ?cpuflags |= SWS_CPU_CAPS_ALTIVEC;
> > had strange results since SWS_CPU_CAPS_MMX != SWS_CPU_CAPS_ALTIVEC.
> > Easily solveable with adding HAVE_(MMX|ALTIVEC) && to the ifs.
> This should all be under ARCH_PPC or HAVE_MMX and similar. x86-family
> CPUs supporting altivec don't exist.
yes, the working code has 'if (HAVE_ALTIVEC && mm_flags & FF_MM_ALTIVEC)'
> (And why && instead of &?)
obvious bug. that's what happens during fast typing without thinking and
looking at it again.
More information about the ffmpeg-devel