summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-30 22:57:04 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-30 22:57:04 +0000
commit9cb5c193c3f49000d7a354a3661fc542c3a47d5c (patch)
tree527cc9460308ec86c9f155f1ff708e07f519a0fb /configure
parent75cf17e3f8fad158fa6518a517472b11a1530216 (diff)
downloadmpv-9cb5c193c3f49000d7a354a3661fc542c3a47d5c.tar.bz2
mpv-9cb5c193c3f49000d7a354a3661fc542c3a47d5c.tar.xz
Set CONFIG_EBP_AVAILABLE, CONFIG_EBX_AVAILABLE for FFmpeg
After FFmpeg r8549 these variables are used in libavcodec to determine whether x86 inline asm sections using these registers or requiring a certain total number of total free registers are enabled. Because they were not set by MPlayer configure some H264 decoding optimizations were disabled after that FFmpeg version. This change sets the variables to true unconditionally which should restore previous behavior. Adding proper detection is left for later. EBX should always be available because internal libavcodec is never compiled with PIC. However if -fomit-frame-pointer is not used because of --enable-debug then EBP is not available. Thus proper detection would be preferable to fix compilation with --enable-debug on x86. Currently the variables are also set on non-x86 which should be harmless even if somewhat ugly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22848 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index fc4084c53e..7be1c14e60 100755
--- a/configure
+++ b/configure
@@ -8005,6 +8005,10 @@ $_def_libavutil_so
/* Use libavformat's muxers */
$_def_muxers
+/* Use these registers in FFmpeg x86 inline asm. No proper detection yet. */
+#define CONFIG_EBX_AVAILABLE 1
+#define CONFIG_EBP_AVAILABLE 1
+
#define CONFIG_GPL 1
/* Use amr codecs from libavcodec (requires amr sources) */