summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-21 11:16:03 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-21 11:16:03 +0000
commit937c4fab19b5eec3ff2f6cfa4eeae3b809e63f19 (patch)
treeda08004ebc6e662828972981332669b2e982ab40 /configure
parent34db438211aa5f734cc526fe3c55afb69e80d0cb (diff)
downloadmpv-937c4fab19b5eec3ff2f6cfa4eeae3b809e63f19.tar.bz2
mpv-937c4fab19b5eec3ff2f6cfa4eeae3b809e63f19.tar.xz
Disable all hwaccel glue code from FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30384 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 5 insertions, 8 deletions
diff --git a/configure b/configure
index 281cd463e9..2e5f5bd75b 100755
--- a/configure
+++ b/configure
@@ -554,6 +554,9 @@ _libavparsers_all=$(sed -n 's/^[^#]*PARSER.*(.*, *\(.*\)).*/\1_parser/p' libavco
_libavparsers=$_libavparsers_all
_libavbsfs_all=$(sed -n 's/^[^#]*BSF.*(.*, *\(.*\)).*/\1_bsf/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
_libavbsfs=$_libavbsfs_all
+_libavhwaccels_all=$(sed -n 's/^[^#]*HWACCEL.*(.*, *\(.*\)).*/\1_hwaccel/p' libavcodec/allcodecs.c | tr '[a-z]' '[A-Z]')
+# Disable all hardware accelerators for now.
+_libavhwaccels=
_libavdemuxers_all=$(sed -n 's/^[^#]*DEMUX.*(.*, *\(.*\)).*/\1_demuxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')
_libavdemuxers=$(echo $_libavdemuxers_all | sed -e 's/ LIB[A-Z0-9_]*_DEMUXER//g' -e s/REDIR_DEMUXER// -e s/RTSP_DEMUXER// -e s/SDP_DEMUXER// -e s/AVISYNTH_DEMUXER//)
_libavmuxers_all=$(sed -n 's/^[^#]*_MUX.*(.*, *\(.*\)).*/\1_muxer/p' libavformat/allformats.c | tr '[a-z]' '[A-Z]')
@@ -8713,6 +8716,7 @@ $(echo $_libavdemuxers | tr '[a-z] ' '[A-Z]\n' | sed 's/^/CONFIG_/;s/$/=yes/')
$(echo $_libavmuxers | tr '[a-z] ' '[A-Z]\n' | sed 's/^/CONFIG_/;s/$/=yes/')
$(echo $_libavprotocols | tr '[a-z] ' '[A-Z]\n' | sed 's/^/CONFIG_/;s/$/=yes/')
$(echo $_libavbsfs | tr '[a-z] ' '[A-Z]\n' | sed 's/^/CONFIG_/;s/$/=yes/')
+$(echo $_libavhwaccels | tr '[a-z] ' '[A-Z]\n' | sed 's/^/CONFIG_/;s/$/=yes/')
EOF
#############################################################################
@@ -9213,14 +9217,7 @@ $(ff_config_enable "$_libavdemuxers_all" "$_libavdemuxers")
$(ff_config_enable "$_libavmuxers_all" "$_libavmuxers")
$(ff_config_enable "$_libavprotocols_all" "$_libavprotocols")
$(ff_config_enable "$_libavbsfs_all" "$_libavbsfs")
-
-#define CONFIG_H263_VAAPI_HWACCEL 0
-#define CONFIG_MPEG2_VAAPI_HWACCEL 0
-#define CONFIG_MPEG4_VAAPI_HWACCEL 0
-#define CONFIG_H264_VAAPI_HWACCEL 0
-#define CONFIG_VC1_VAAPI_HWACCEL 0
-#define CONFIG_WMV3_VAAPI_HWACCEL 0
-#define CONFIG_H264_DXVA2_HWACCEL 0
+$(ff_config_enable "$_libavhwaccels_all" "$_libavhwaccels")
#endif /* MPLAYER_CONFIG_H */
EOF