# HG changeset patch # User uau # Date 1175295424 0 # Node ID 1d4a455af87649b51bd8a66720a5b979219b31d8 # Parent 9ade9f0ebfc08b2ccefcb745231faa16ea6e2704 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. diff -r 9ade9f0ebfc0 -r 1d4a455af876 configure --- a/configure Fri Mar 30 22:09:13 2007 +0000 +++ b/configure Fri Mar 30 22:57:04 2007 +0000 @@ -8005,6 +8005,10 @@ /* 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) */