packages DVDStyler-1.6.2-ffmpeg.patch
      Pages: < 1 >  DOWNLOAD      
diff -Naurp dvdstyler-1.6.2-orig/configure.in dvdstyler-1.6.2/configure.in
--- dvdstyler-1.6.2-orig/configure.in	2008-01-15 06:59:31.000000000 -0600
+++ dvdstyler-1.6.2/configure.in	2008-07-04 09:54:48.000000000 -0600
@@ -84,7 +84,7 @@
 AC_CHECK_LIB(avformat, av_register_all, [], [AC_MSG_ERROR([*** missing ffmpeg library: libavformat])])
 AC_CHECK_LIB(avcodec, avcodec_decode_audio2, [], [AC_MSG_ERROR([*** missing ffmpeg library: libavcodec])])
 AC_CHECK_LIB(swscale, sws_getContext)
-AC_CHECK_HEADERS(ffmpeg/avcodec.h, [], [AC_MSG_ERROR([*** missing ffmpeg header file: ffmpeg/avcodec.h.])])
+AC_CHECK_HEADERS(libavcodec/avcodec.h, [], [AC_MSG_ERROR([*** missing ffmpeg header file: libavcodec/avcodec.h.])])
 
 CXXFLAGS="$CXXFLAGS -DDATADIR=\\\"$datadir/$PACKAGE\\\""

diff -Naurp dvdstyler-1.6.2-orig/src/mediadec_ffmpeg.cpp dvdstyler-1.6.2/src/mediadec_ffmpeg.cpp
--- dvdstyler-1.6.2-orig/src/mediaenc_ffmpeg.cpp	2008-03-02 12:43:54.000000000 -0600
+++ dvdstyler-1.6.2/src/mediaenc_ffmpeg.cpp	2008-07-04 09:55:53.000000000 -0600
@@ -24,8 +24,8 @@
 extern "C" {
 #define __STDC_CONSTANT_MACROS
 #define __STDC_LIMIT_MACROS
-#include <ffmpeg/avformat.h>
-#include <ffmpeg/swscale.h>
+#include <libavformat/avformat.h>
+#include <libswscale/swscale.h>
 }
 
 #define AUDIO_BUF_SIZE 50000

diff -Naurp dvdstyler-1.6.2-orig/configure dvdstyler-1.6.2/configure
--- dvdstyler-1.6.2-orig/configure   2008-01-15 06:59:31.000000000 -0600
+++ dvdstyler-1.6.2/configure        2008-07-04 09:54:48.000000000 -0600
@@ -5729,7 +5729,7 @@
 fi
 
 
-for ac_header in ffmpeg/avcodec.h
+for ac_header in libavformat/avformat.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -5870,8 +5870,8 @@
 _ACEOF
 
 else
-  { { echo "$as_me:$LINENO: error: *** missing ffmpeg header file: ffmpeg/avcodec.h." >&5
-echo "$as_me: error: *** missing ffmpeg header file: ffmpeg/avcodec.h." >&2;}
+  { { echo "$as_me:$LINENO: error: *** missing ffmpeg header file: ibavformat/avformat.h." >&5
+echo "$as_me: error: *** missing ffmpeg header file: libavformat/avformat.h." >&2;}
    { (exit 1); exit 1; }; }
 fi