changeset 7004:8eff71f38685

dynamic libavcodec.so support updated by Alexander.Gottwald@informatik.tu-chemnitz.de
author arpi
date Wed, 14 Aug 2002 21:43:49 +0000
parents 60a473935d7d
children 40c596e65526
files configure libmpcodecs/ad_ffmpeg.c libmpcodecs/vd_ffmpeg.c libmpcodecs/ve_lavc.c libmpcodecs/vf_lavc.c libmpcodecs/vf_lavcdeint.c
diffstat 6 files changed, 16 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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 <libffmpeg/avcodec.h>
+#include <ffmpeg/avcodec.h>
 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
--- 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 <libffmpeg/avcodec.h>
+#include <ffmpeg/avcodec.h>
 #else
 #include "libavcodec/avcodec.h"
 #endif
--- 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 <libffmpeg/avcodec.h>
+#include <ffmpeg/avcodec.h>
 #else
 #include "libavcodec/avcodec.h"
 #endif
--- 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 <libffmpeg/avcodec.h>
+#include <ffmpeg/avcodec.h>
 #else
 #include "libavcodec/avcodec.h"
 #endif
--- 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 <libffmpeg/avcodec.h>
+#include <ffmpeg/avcodec.h>
 #else
 #include "libavcodec/avcodec.h"
 #endif
--- 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 <libffmpeg/avcodec.h>
+#include <ffmpeg/avcodec.h>
 #else
 #include "libavcodec/avcodec.h"
 #endif