changeset 19385:74fc1ab46daa

Add a switch for disabling high precision mpeg audio decoding in libavcodec.
author diego
date Mon, 14 Aug 2006 12:32:36 +0000
parents 8469056e77e8
children 01853e915882
files configure
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Aug 14 09:23:53 2006 +0000
+++ b/configure	Mon Aug 14 12:32:36 2006 +0000
@@ -267,6 +267,8 @@
   --disable-libavcodec_so  disable shared libavcodec [autodetect]
   --disable-libavformat_so disable shared libavformat [autodetect]
   --disable-libpostproc_so disable shared libpostproc [autodetect]
+  --disable-libavcodec_mpegaudio_hp disable high precision audio decoding
+                                    in libavcodec [enabled]
   --enable-libfame       enable libfame realtime encoder [autodetect]
   --disable-tremor-internal do not build internal Tremor support [enabled]
   --enable-tremor-low    build with lower accuracy internal Tremor [disabled]
@@ -1562,6 +1564,7 @@
 _libavformat_so=auto
 _libpostproc=auto
 _libpostproc_so=auto
+_lavc_mpegaudio_hp=yes
 _libfame=auto
 _mencoder=yes
 _x11=auto
@@ -1933,6 +1936,9 @@
   --disable-libpostproc)	_libpostproc=no		;;
   --enable-libpostproc_so)	_libpostproc_so=yes	;;
   --disable-libpostproc_so)	_libpostproc_so=no	;;
+  --enable-lavc_mpegaudio_hp)	_lavc_mpegaudio_hp=yes	;;
+  --disable-lavc_mpegaudio_hp)	_lavc_mpegaudio_hp=no	;;
+
   --enable-libfame)	_libfame=yes	;;
   --disable-libfame)	_libfame=no	;;
   --enable-lirc)	_lirc=yes	;;
@@ -6215,6 +6221,9 @@
 _def_libavcodec='#undef USE_LIBAVCODEC'
 _def_libavcodec_so='#undef USE_LIBAVCODEC_SO'
 _def_lavc_dsputil='#undef USE_LIBAVCODEC_DSPUTIL'
+if test "$_lavc_mpegaudio_hp" = yes ; then
+  _def_lavc_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1'
+fi
 if test "$_libavcodec" = yes ; then
   _def_libavcodec='#define USE_LIBAVCODEC 1'
   _def_lavc_dsputil='#define USE_LIBAVCODEC_DSPUTIL'
@@ -7781,6 +7790,7 @@
 $_def_libavcodec
 $_def_libavcodec_so
 $_def_lavc_dsputil
+$_def_lavc_mpegaudio_hp
 
 /* ffmpeg's libavformat support (requires libavformat source) */
 $_def_libavformat
@@ -7800,8 +7810,6 @@
 /* Use libavformat's muxers */
 $_def_muxers
 
-#define CONFIG_MPEGAUDIO_HP 1
-
 #define CONFIG_GPL 1
 
 /* Use amr codecs from libavcodec (requires amr sources) */