Mercurial > mplayer.hg
changeset 10726:bae3e8c81ada
use internal (included) libfaad2
author | arpi |
---|---|
date | Sat, 30 Aug 2003 22:31:45 +0000 |
parents | e989150f8216 |
children | 8e85b87339fe |
files | Makefile configure libmpcodecs/ad_faad.c |
diffstat | 3 files changed, 22 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Aug 30 22:30:28 2003 +0000 +++ b/Makefile Sat Aug 30 22:31:45 2003 +0000 @@ -36,11 +36,11 @@ VO_LIBS = $(AA_LIB) $(X_LIB) $(SDL_LIB) $(GGI_LIB) $(MP1E_LIB) $(MLIB_LIB) $(SVGA_LIB) $(DIRECTFB_LIB) AO_LIBS = $(ARTS_LIB) $(ESD_LIB) $(NAS_LIB) $(SGIAUDIO_LIB) CODEC_LIBS = $(AV_LIB) $(FAME_LIB) $(MAD_LIB) $(VORBIS_LIB) $(THEORA_LIB) $(FAAD_LIB) $(LIBLZO_LIB) $(DECORE_LIB) $(XVID_LIB) $(PNG_LIB) $(Z_LIB) $(JPEG_LIB) $(ALSA_LIB) $(XMMS_LIB) $(MATROSKA_LIB) -COMMON_LIBS = libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a $(W32_LIB) $(DS_LIB) libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a $(CSS_LIB) $(CODEC_LIBS) $(FREETYPE_LIB) $(TERMCAP_LIB) $(CDPARANOIA_LIB) $(MPLAYER_NETWORK_LIB) $(WIN32_LIB) $(GIF_LIB) $(MACOSX_FRAMEWORKS) $(SMBSUPPORT_LIB) $(FRIBIDI_LIB) +COMMON_LIBS = libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a libfaad2/libfaad2.a libmpeg2/libmpeg2.a $(W32_LIB) $(DS_LIB) libaf/libaf.a libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a osdep/libosdep.a $(CSS_LIB) $(CODEC_LIBS) $(FREETYPE_LIB) $(TERMCAP_LIB) $(CDPARANOIA_LIB) $(MPLAYER_NETWORK_LIB) $(WIN32_LIB) $(GIF_LIB) $(MACOSX_FRAMEWORKS) $(SMBSUPPORT_LIB) $(FRIBIDI_LIB) CFLAGS = $(OPTFLAGS) -Ilibmpdemux -Iloader -Ilibvo $(FREETYPE_INC) $(EXTRA_INC) $(CDPARANOIA_INC) $(SDL_INC) $(X11_INC) $(FRIBIDI_INC) $(DVB_INC) # -Wall -PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers osdep postproc input libvo libaf +PARTS = libmpdemux libmpcodecs mp3lib liba52 libmpeg2 libavcodec libao2 drivers osdep postproc input libvo libaf libfaad2 ifeq ($(VIDIX),yes) PARTS += libdha vidix endif @@ -72,7 +72,7 @@ ALL_PRG += $(PRG_FIBMAP) endif -COMMON_DEPS = $(W32_DEP) $(DS_DEP) $(MP1E_DEP) $(AV_DEP) libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a +COMMON_DEPS = $(W32_DEP) $(DS_DEP) $(MP1E_DEP) $(AV_DEP) libmpdemux/libmpdemux.a libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a libfaad2/libfaad2.a mp3lib/libMP3.a libmpeg2/libmpeg2.a osdep/libosdep.a postproc/libswscale.a input/libinput.a libvo/libvo.a libaf/libaf.a ifeq ($(VIDIX),yes) COMMON_DEPS += libdha/libdha.so vidix/libvidix.a @@ -149,6 +149,9 @@ liba52/liba52.a: $(MAKE) -C liba52 +libfaad2/libfaad2.a: + $(MAKE) -C libfaad2 + mp3lib/libMP3.a: $(MAKE) -C mp3lib
--- a/configure Sat Aug 30 22:30:28 2003 +0000 +++ b/configure Sat Aug 30 22:31:45 2003 +0000 @@ -1077,7 +1077,7 @@ _theora=auto _matroska=auto _tremor=no -_faad=auto +_faad=yes _xmms=no _css=auto # dvdnav disabled, it does not work @@ -4279,17 +4279,18 @@ echocheck "faad2 (AAC) support" -if test "$_faad" = auto ; then - _faad=no - cat > $TMPC << EOF -#include <faad.h> -int main(void) { faacDecHandle testhand; faacDecFrameInfo testinfo; testhand = faacDecOpen(); return 0; } -EOF - cc_check -lfaad -lm && _faad=yes -fi +#if test "$_faad" = auto ; then +# _faad=no +# cat > $TMPC << EOF +##include <faad.h> +#int main(void) { faacDecHandle testhand; faacDecFrameInfo testinfo; testhand = faacDecOpen(); return 0; } +#EOF +# cc_check -lfaad -lm && _faad=yes +#fi if test "$_faad" = yes ; then _def_faad='#define HAVE_FAAD 1' - _ld_faad='-lfaad' + _inc_faad="-I`pwd`" +# _ld_faad='-lfaad' _codecmodules="faad2 $_codecmodules" else _def_faad='#undef HAVE_FAAD' @@ -4298,7 +4299,8 @@ if test "$_faad" = yes; then cat > $TMPC <<EOF -#include <faad.h> +//#include <faad.h> +#include "libfaad2/faad.h" #ifndef FAAD_MIN_STREAMSIZE #error Too old version #endif @@ -4311,7 +4313,7 @@ return 0; } EOF - if cc_check $_ld_faad -lm && "$TMPO" >> "$TMPLOG" ; then + if cc_check $_inc_faad $_ld_faad -lm && "$TMPO" >> "$TMPLOG" ; then _faad_version=`"$TMPO"` _faad_tempversion=`"$TMPO" | sed -e 's/^\([0-9]\{1,\}\)\.\([0-9]\{1,\}\).*/\1\2/'` _def_faad_version="#define FAADVERSION $_faad_tempversion"
--- a/libmpcodecs/ad_faad.c Sat Aug 30 22:30:28 2003 +0000 +++ b/libmpcodecs/ad_faad.c Sat Aug 30 22:31:45 2003 +0000 @@ -24,7 +24,8 @@ LIBAD_EXTERN(faad) -#include <faad.h> +//#include <faad.h> +#include "../libfaad2/faad.h" /* configure maximum supported channels, * * this is theoretically max. 64 chans */