# HG changeset patch # User iive # Date 1299858642 0 # Node ID 983a6e18b80d2f3e867b282224e4f1973d1327dd # Parent ff128ac010bafecc504c01c805cd5f4c90380b33 Fix MPlayer build after CrystalHD have been accepted in FFmpeg. Add dummy detection to configure and set it to disabled. diff -r ff128ac010ba -r 983a6e18b80d configure --- a/configure Fri Mar 11 14:05:29 2011 +0000 +++ b/configure Fri Mar 11 15:50:42 2011 +0000 @@ -476,6 +476,7 @@ --enable-xv enable Xv video output [autodetect] --enable-xvmc enable XvMC acceleration [disable] --enable-vdpau enable VDPAU acceleration [autodetect] + --enable-crystalhd enable CrystalHD acceleration (incomplete) [disable] --enable-vm enable XF86VidMode support [autodetect] --enable-xinerama enable Xinerama support [autodetect] --enable-x11 enable X11 video output [autodetect] @@ -659,6 +660,7 @@ _xv=auto _xvmc=no #auto when complete _vdpau=auto +_crystalhd=no _sdl=auto _kva=auto _direct3d=auto @@ -999,6 +1001,8 @@ --disable-xvmc) _xvmc=no ;; --enable-vdpau) _vdpau=yes ;; --disable-vdpau) _vdpau=no ;; + --enable-crystalhd) _crystalhd=yes ;; + --disable-crystalhd) _crystalhd=no ;; --enable-sdl) _sdl=yes ;; --disable-sdl) _sdl=no ;; --enable-kva) _kva=yes ;; @@ -4407,6 +4411,17 @@ fi echores "$_vdpau" +echocheck "CrystalHD" +if test "$_crystalhd" = auto ; then + _crystalhd=yes +fi +if test "$_crystalhd" = yes ; then + def_crystalhd='#define CONFIG_CRYSTALHD 1' +else + def_crystalhd='#define CONFIG_CRYSTALHD 0' + libavdecoders=$(echo $libavdecoders | sed -e s/H264_CRYSTALHD_DECODER// -e s/MPEG4_CRYSTALHD_DECODER// -e s/MPEG2_CRYSTALHD_DECODER// -e s/MSMPEG4_CRYSTALHD_DECODER// -e s/VC1_CRYSTALHD_DECODER// -e s/WMV3_CRYSTALHD_DECODER//) +fi +echores "$_CrystalHD" echocheck "Xinerama" if test "$_xinerama" = auto ; then @@ -8167,6 +8182,7 @@ CONFIG_LIBRTMP = $_librtmp CONFIG_BZLIB = $bzlib +CONFIG_CRYSTALHD= $_crystalhd CONFIG_ENCODERS = yes CONFIG_GPL = yes CONFIG_MLIB = $_mlib @@ -8509,6 +8525,7 @@ $def_bl $def_caca $def_corevideo +$def_crystalhd $def_dga $def_dga1 $def_dga2