Mercurial > mplayer.hg
changeset 1279:799fa3cb38e3
ffmpeg support
author | arpi |
---|---|
date | Fri, 06 Jul 2001 03:22:14 +0000 |
parents | cf7fb4a50f28 |
children | 3c58e55bb487 |
files | Makefile configure |
diffstat | 2 files changed, 25 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Fri Jul 06 03:15:37 2001 +0000 +++ b/Makefile Fri Jul 06 03:22:14 2001 +0000 @@ -40,6 +40,9 @@ loader/DirectShow/libDS_Filter.a: $(MAKE) -C loader/DirectShow +libavcodec/libavcodec.a: + $(MAKE) -C libavcodec + libmpeg2/libmpeg2.a: $(MAKE) -C libmpeg2
--- a/configure Fri Jul 06 03:15:37 2001 +0000 +++ b/configure Fri Jul 06 03:22:14 2001 +0000 @@ -377,6 +377,7 @@ _dshow=yes _fastmemcpy=yes _streaming=no +_libavcodec=no _x=1 _y=1 @@ -438,6 +439,11 @@ fi fi +if [ -d libavcodec ]; then + if [ -e libavcodec/Makefile ]; then + _libavcodec=yes + fi +fi if [ -c /dev/mga_vid ]; then _mga=yes @@ -1140,6 +1146,7 @@ echo "Checking for DeCSS support ... $_css" echo "Checking for PNG support ... $_png" echo "Checking for DirectShow ... $_dshow" +echo "Checking for libavcodec ... $_libavcodec" echo "Checking for fastmemcpy ... $_fastmemcpy" echo "Extra libs : $_extralibdir" echo "Extra headers : $_extraincdir" @@ -1192,6 +1199,16 @@ _dshow='#undef USE_DIRECTSHOW' fi +if [ $_libavcodec = yes ]; then + _lavclib='-Llibavcodec -lavcodec' + _lavcdep='libavcodec/libavcodec.a' + _libavcodec='#define USE_LIBAVCODEC' +else + _lavclib='' + _lavcdep='' + _libavcodec='#undef USE_LIBAVCODEC' +fi + if [ $_fastmemcpy = yes ]; then _fastmemcpy='#define USE_FASTMEMCPY' else @@ -1520,8 +1537,8 @@ CSS_LIB = $_csslib CSS_INC = $_cssinc SDL_INC = $_sdlcflags -DS_DEP = $_dshowdep -DS_LIB = $_dshowlib +DS_DEP = $_dshowdep $_lavcdep +DS_LIB = $_dshowlib $_lavclib ALSA_LIB = $_alsalib ESD_LIB = $_esdlib ARCH_LIBS = $_archlibs @@ -1609,6 +1626,9 @@ /* DirectShow support */ $_dshow +/* ffmpeg's libavcodec support (requires libavcodec source) */ +$_libavcodec + /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/ $_fastmemcpy