[MPlayer-dev-eng] [PATCH] fix compilation with CONFIG_H264_DXVA2_HWACCEL

Andrew Wason rectalogic at rectalogic.com
Thu Jan 21 03:53:49 CET 2010


Patch fixes mplayer build on OSX which is failing with:

cc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization
-Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall
-Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=core2
-mtune=core2 -pipe -ffast-math -fomit-frame-pointer
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-Ilibdvdread4 -mdynamic-no-pic -falign-loops=16 -shared-libgcc -I.
-DPIC  -I/usr/X11/include -I/opt/local/include/SDL -D_GNU_SOURCE=1
-D_THREAD_SAFE -I/opt/local/include/freetype2 -I/opt/local/include
-c -o allcodecs.o allcodecs.c
allcodecs.c: In function 'avcodec_register_all':
allcodecs.c:58: error: 'CONFIG_H264_DXVA2_HWACCEL' undeclared (first
use in this function)
allcodecs.c:58: error: (Each undeclared identifier is reported only once
allcodecs.c:58: error: for each function it appears in.)
make[1]: *** [allcodecs.o] Error 1
make: *** [libavcodec/libavcodec.a] Error 2
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 30380)
+++ configure	(working copy)
@@ -9220,6 +9220,7 @@
 #define CONFIG_H264_VAAPI_HWACCEL 0
 #define CONFIG_VC1_VAAPI_HWACCEL 0
 #define CONFIG_WMV3_VAAPI_HWACCEL 0
+#define CONFIG_H264_DXVA2_HWACCEL 0
 
 #endif /* MPLAYER_CONFIG_H */
 EOF


More information about the MPlayer-dev-eng mailing list