[FFmpeg-devel] [PATCH] PPC runtime altivec detection via mfspr

Reimar Döffinger Reimar.Doeffinger
Sat Jan 19 20:28:33 CET 2008

On Thu, Nov 15, 2007 at 11:51:01AM +0100, Reimar D?ffinger wrote:
> attached patch adds altivec detection via the mfspr.
> Unfortunately, there is no way to detect if mfspr is available,
> neither is there a configure flag to manually enable/disable runtime
> cpudetection.
> So as a (temporary) hack I made the code conditional on MPlayer's
> I agree this is ugly, and for ffmpeg we could just as well put it under
> #elif 0.
> I just think it might be nice to have this code in because it seems e.g.
> Debian could use it without any problems, whereas on my test system it
> would always crash.
> Of course, if someone wrote a proper ffmpeg configure part for it that
> would be nice as well...
> Opinions?

Not real feedback, so I applied it finally. We can still try to find
some proper solution (or revert if someone minds a lot)...

Reimar D?ffinger

More information about the ffmpeg-devel mailing list