[Ffmpeg-devel] RUNTIME_CPUDETECT broken on PPC due to -maltivec

Diego Biurrun diego
Fri Mar 9 20:21:25 CET 2007


On Fri, Mar 09, 2007 at 07:45:51PM +0100, Luca Barbato wrote:
> Sam Hocevar wrote:
> > 
> >      http://trac.videolan.org/pkg-multimedia/browser/experimental/ffmpeg/debian/patches/040_only_use_maltivec_when_needed.diff
> > 
> >    Before I spend time polishing that patch, I'd like to know whether
> > there is interest from the FFmpeg developers to integrate a proper fix
> > upstream, or if you're more of the opinion that it's gcc that needs
> > fixing or that runtime G3 support is not a requirement (in which case I
> > won't probably bother cleaning up the patch).
> > 
> >    Any comments welcome.
> 
> ffmpeg-0.cvs20070307/configure OK
> 
> ffmpeg-0.cvs20070307/libavcodec/Makefile Annoying but I cannot think
> about other ways

To simplify this a bit you can merge

ppc/h264_altivec.o: CFLAGS+= $(ALTIVECFLAGS) 
ppc/snow_altivec.o: CFLAGS+= $(ALTIVECFLAGS) 
ppc/vc1dsp_altivec.o: CFLAGS+= $(ALTIVECFLAGS) 

into

ppc/h264_altivec.o ppc/snow_altivec.o ppc/vc1dsp_altivec.o: CFLAGS+= $(ALTIVECFLAGS) 

Diego





More information about the ffmpeg-devel mailing list