[FFmpeg-devel] [PATCH] swscale: Altivec does not depend on GPL.

Ramiro Polla ramiro.polla
Sun Apr 5 22:20:21 CEST 2009

On Sun, Apr 5, 2009 at 5:07 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Sun, Apr 05, 2009 at 02:09:27PM -0300, Ramiro Polla wrote:
>> Hi,
>> This fixes a build error reported by a vlc dev in which
>> RUNTIME_CPUDETECT and GPL were specified.
> what build error and how is it fixing it?

../git/configure --enable-gpl --extra-cflags=-DRUNTIME_CPUDETECT
cd libswscale
gcc -DHAVE_AV_CONFIG_H -I.. -I"/home/ramiro/ffmpeg/git"
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fomit-frame-pointer
-maltivec -mabi=altivec -g -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -O3
-fno-math-errno   -c -o swscale.o
[unrelated warnings]
/home/ramiro/ffmpeg/git/libswscale/swscale.c: In function 'getSwsFunc':
/home/ramiro/ffmpeg/git/libswscale/swscale.c:1796: warning: implicit
declaration of function 'sws_init_swScale_C'
/home/ramiro/ffmpeg/git/libswscale/swscale.c:1797: error: 'swScale_C'
undeclared (first use in this function)
/home/ramiro/ffmpeg/git/libswscale/swscale.c:1797: error: (Each
undeclared identifier is reported only once
/home/ramiro/ffmpeg/git/libswscale/swscale.c:1797: error: for each
function it appears in.)
/home/ramiro/ffmpeg/git/libswscale/swscale.c: In function
/home/ramiro/ffmpeg/git/libswscale/swscale.c:3409: warning: assignment
discards qualifiers from pointer target type
make: *** [swscale.o] Error 1

COMPILE_C was being wrongly #undef'd.

Ramiro Polla

More information about the ffmpeg-devel mailing list