# HG changeset patch # User arpi # Date 1029361429 0 # Node ID 8eff71f38685be81b01c7444ddfa8351921884d7 # Parent 60a473935d7d3e2f05046431455bf93e9002d904 dynamic libavcodec.so support updated by Alexander.Gottwald@informatik.tu-chemnitz.de diff -r 60a473935d7d -r 8eff71f38685 configure --- a/configure Wed Aug 14 21:28:18 2002 +0000 +++ b/configure Wed Aug 14 21:43:49 2002 +0000 @@ -903,7 +903,7 @@ # and have - unless stated otherwise - at least 2 states : yes no # If autodetection is available then the third state is: auto _libavcodec=auto -_libavcodecso=no # changed default to no as it causes problems - atmos +_libavcodecso=auto _fame=auto _mp1e=no _mencoder=yes @@ -3516,15 +3516,18 @@ # FIXME : check for avcodec_find_encoder_by_name() for mencoder cat > $TMPC << EOF #define FF_POSTPROCESS 1 -#include +#include int quant_store[MBR+1][MBC+1]; -int main(void) { return 0; } +int main(void) { + avcodec_find_encoder_by_name(""); + return 0; +} EOF - if cc_check -lffmpeg -lm ; then + if cc_check -lavcodec -lm ; then _libavcodecso=yes - echores "yes (using libffmpeg.so)" + echores "yes (using libavcodec.so)" else - echores "no (libffmpeg.so is broken/obsolete)" + echores "no (libavcodec.so is broken/obsolete)" fi else echores "$_libavcodecso" @@ -3541,8 +3544,9 @@ _def_ffpostprocess='#define FF_POSTPROCESS 1' _codecmodules="libavcodec $_codecmodules" elif test "$_libavcodecso" = yes ; then + _def_libavcodec='#define USE_LIBAVCODEC 1' _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' - _ld_libavcodec='-lffmpeg' + _ld_libavcodec='-lavcodec' _def_ffpostprocess='#define FF_POSTPROCESS 1' _codecmodules="libavcodec.so $_codecmodules" else diff -r 60a473935d7d -r 8eff71f38685 libmpcodecs/ad_ffmpeg.c --- a/libmpcodecs/ad_ffmpeg.c Wed Aug 14 21:28:18 2002 +0000 +++ b/libmpcodecs/ad_ffmpeg.c Wed Aug 14 21:43:49 2002 +0000 @@ -27,7 +27,7 @@ #define assert(x) #ifdef USE_LIBAVCODEC_SO -#include +#include #else #include "libavcodec/avcodec.h" #endif diff -r 60a473935d7d -r 8eff71f38685 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Wed Aug 14 21:28:18 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed Aug 14 21:43:49 2002 +0000 @@ -28,7 +28,7 @@ #ifdef USE_LIBAVCODEC_SO -#include +#include #else #include "libavcodec/avcodec.h" #endif diff -r 60a473935d7d -r 8eff71f38685 libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Wed Aug 14 21:28:18 2002 +0000 +++ b/libmpcodecs/ve_lavc.c Wed Aug 14 21:43:49 2002 +0000 @@ -30,7 +30,7 @@ //===========================================================================// #ifdef USE_LIBAVCODEC_SO -#include +#include #else #include "libavcodec/avcodec.h" #endif diff -r 60a473935d7d -r 8eff71f38685 libmpcodecs/vf_lavc.c --- a/libmpcodecs/vf_lavc.c Wed Aug 14 21:28:18 2002 +0000 +++ b/libmpcodecs/vf_lavc.c Wed Aug 14 21:43:49 2002 +0000 @@ -16,7 +16,7 @@ //#include "../libvo/fastmemcpy.h" #ifdef USE_LIBAVCODEC_SO -#include +#include #else #include "libavcodec/avcodec.h" #endif diff -r 60a473935d7d -r 8eff71f38685 libmpcodecs/vf_lavcdeint.c --- a/libmpcodecs/vf_lavcdeint.c Wed Aug 14 21:28:18 2002 +0000 +++ b/libmpcodecs/vf_lavcdeint.c Wed Aug 14 21:43:49 2002 +0000 @@ -16,7 +16,7 @@ //#include "../libvo/fastmemcpy.h" #ifdef USE_LIBAVCODEC_SO -#include +#include #else #include "libavcodec/avcodec.h" #endif