[vlc-devel] commit: contrib: turn off Thumb ISA for libavcodec and libmad ( Rémi Denis-Courmont )

Rémi Denis-Courmont remi at remlab.net
Sat Aug 29 21:06:38 CEST 2009


Le samedi 29 août 2009 21:49:27 Måns Rullgård, vous avez écrit :
> git at videolan.org (git version control) writes:
> > diff --git a/extras/contrib/src/Patches/ffmpeg-avcodec-no-thumb.patch
> > b/extras/contrib/src/Patches/ffmpeg-avcodec-no-thumb.patch new file mode
> > 100644
> > index 0000000..21b51a5
> > --- /dev/null
> > +++ b/extras/contrib/src/Patches/ffmpeg-avcodec-no-thumb.patch
> > @@ -0,0 +1,10 @@
> > +Index: ffmpeg/libavcodec/Makefile
> > +===================================================================
> > +--- ffmpeg/libavcodec/Makefile	(révision 19635)
> > ++++ ffmpeg/libavcodec/Makefile	(copie de travail)
> > +@@ -1,4 +1,5 @@
> > + include $(SUBDIR)../config.mak
> > ++CFLAGS+=-mno-thumb
> > +
> > + NAME = avcodec
> > + FFLIBS = avutil
>
> This will probably not work properly.  The proper solution is to pass
> --extra-cflags=-mno-thumb to the FFmpeg configure script.

It did work. At least, it did make the code compile which wouldn't work with 
Thumb. I guess avcodec uses fancy ASM instructions outside of Thumb-2.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list