[FFmpeg-devel] [PATCH] fix --enable-runtime-cpudetect --disable-amd3dnow compilation

Alexander Strange astrange
Sat Sep 4 00:06:11 CEST 2010

CC      libswscale/swscale.o
libswscale/swscale.c: In function ?ff_getSwsFunc?:
libswscale/swscale.c:1268: warning: implicit declaration of function ?sws_init_swScale_3DNow?
libswscale/swscale.c:1269: error: ?swScale_3DNow? undeclared (first use in this function)
libswscale/swscale.c:1269: error: (Each undeclared identifier is reported only once
libswscale/swscale.c:1269: error: for each function it appears in.)

Alternatively, it could declare prototypes for sws_init_swScale_3DNow / swScale_3DNow even if they aren't being compiled.
That would let us use "if (COMPILE_TEMPLATE_AMD3DNOW && flags & SWS_CPU_CAPS_3DNOW)" instead of #ifdefs. But it might make some of the other templating more complex. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_runtime_cpudetect_no_3dnow.diff
Type: application/octet-stream
Size: 888 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100903/e4b93e86/attachment.obj>

More information about the ffmpeg-devel mailing list