[FFmpeg-devel] [PATCH] Add ppc/fmtconvert_ppc.c to fix compilation for PPC without Altivec.

Reimar Döffinger Reimar.Doeffinger
Sat Mar 5 12:15:28 CET 2011


> +    int mm_flags = av_get_cpu_flags();
> +
> +    if (mm_flags & AV_CPU_FLAG_ALTIVEC && HAVE_ALTIVEC) {

Is there any point to it? As far as I know as soon as
HAVE_ALTIVEC is set the code will crash on non-altivec
anyway so the av_get_cpu_flags is just confusing because
it pretends that something will work that does not at all.



More information about the ffmpeg-devel mailing list