public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in media-video/cinelerra-cvs/files: cinelerra-cvs-gcc-4.3.patch cinelerra-cvs-ffmpegheaders.patch
@ 2008-04-01 21:20 Alexis Ballier (aballier)
  0 siblings, 0 replies; only message in thread
From: Alexis Ballier (aballier) @ 2008-04-01 21:20 UTC (permalink / raw
  To: gentoo-commits

aballier    08/04/01 21:20:16

  Added:                cinelerra-cvs-gcc-4.3.patch
                        cinelerra-cvs-ffmpegheaders.patch
  Log:
  bump a new snapshot with a gcc 4.3 fix by Martin Väth <vaeth@mathematik.uni-wuerzburg.de> (bug #215431) and a fix to build with latest ffmpeg by me
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.1                  media-video/cinelerra-cvs/files/cinelerra-cvs-gcc-4.3.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra-cvs/files/cinelerra-cvs-gcc-4.3.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra-cvs/files/cinelerra-cvs-gcc-4.3.patch?rev=1.1&content-type=text/plain

Index: cinelerra-cvs-gcc-4.3.patch
===================================================================
--- plugins/threshold/threshold.C
+++ plugins/threshold/threshold.C
@@ -461,13 +461,13 @@
 }
 
 template<>
-static inline float scale_to_range(int v)
+inline float scale_to_range(int v)
 {
 	return (float) v / 0xff;
 }
 
 template<>
-static inline uint16_t scale_to_range(int v)
+inline uint16_t scale_to_range(int v)
 {
 	return v << 8 | v;
 }



1.1                  media-video/cinelerra-cvs/files/cinelerra-cvs-ffmpegheaders.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra-cvs/files/cinelerra-cvs-ffmpegheaders.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra-cvs/files/cinelerra-cvs-ffmpegheaders.patch?rev=1.1&content-type=text/plain

Index: cinelerra-cvs-ffmpegheaders.patch
===================================================================
Index: cinelerra-cvs/cinelerra/ffmpeg.h
===================================================================
--- cinelerra-cvs.orig/cinelerra/ffmpeg.h
+++ cinelerra-cvs/cinelerra/ffmpeg.h
@@ -1,11 +1,20 @@
 #ifndef FFMPEG_H
 #define FFMPEG_H
 
+#include "config.h"
 extern "C" {
+#if HAVE_LIBAVCODEC_AVCODEC_H
+#include <libavcodec/avcodec.h>
+#else
 #include <avcodec.h>
+#endif
 #ifdef HAVE_SWSCALER
+#if HAVE_LIBSWSCALE_SWSCALE_H
+#include <libswscale/swscale.h>
+#else
 #include <swscale.h>
 #endif
+#endif
 };
 
 #include "asset.h"
Index: cinelerra-cvs/cinelerra/fileac3.h
===================================================================
--- cinelerra-cvs.orig/cinelerra/fileac3.h
+++ cinelerra-cvs/cinelerra/fileac3.h
@@ -1,8 +1,13 @@
 #ifndef FILEAC3_H
 #define FILEAC3_H
 
+#include "config.h"
 extern "C" {
+#if HAVE_LIBAVCODEC_AVCODEC_H
+#include <libavcodec/avcodec.h>
+#else
 #include <avcodec.h>
+#endif
 };
 
 #include "filebase.h"
Index: cinelerra-cvs/configure.in
===================================================================
--- cinelerra-cvs.orig/configure.in
+++ cinelerra-cvs/configure.in
@@ -370,6 +370,10 @@ if test "x$with_external_ffmpeg" = "xyes
      else
                  PKG_CHECK_MODULES([FFMPEG], [libavcodec libpostproc])
      fi
+     AC_CHECK_HEADERS(ffmpeg/avcodec.h libavcodec/avcodec.h)
+     AC_CHECK_HEADERS(ffmpeg/avformat.h libavformat/avformat.h)
+     AC_CHECK_HEADERS(ffmpeg/avutil.h libavutil/avutil.h)
+     AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])
 
 else
      FFMPEG_FOLDER=ffmpeg
Index: cinelerra-cvs/quicktime/mpeg4.c
===================================================================
--- cinelerra-cvs.orig/quicktime/mpeg4.c
+++ cinelerra-cvs/quicktime/mpeg4.c
@@ -7,7 +7,12 @@
 
 
 
+#include "config.h"
+#if HAVE_LIBAVCODEC_AVCODEC_H
+#include <libavcodec/avcodec.h>
+#else
 #include "avcodec.h"
+#endif
 #include "colormodels.h"
 #include "funcprotos.h"
 #include "qtffmpeg.h"
Index: cinelerra-cvs/quicktime/qtffmpeg.h
===================================================================
--- cinelerra-cvs.orig/quicktime/qtffmpeg.h
+++ cinelerra-cvs/quicktime/qtffmpeg.h
@@ -16,8 +16,12 @@
 // Heroine Virtual.
 
 
-
+#include "config.h"
+#if HAVE_LIBAVCODEC_AVCODEC_H
+#include <libavcodec/avcodec.h>
+#else
 #include "avcodec.h"
+#endif
 #include "qtprivate.h"
 
 
Index: cinelerra-cvs/quicktime/qth264.c
===================================================================
--- cinelerra-cvs.orig/quicktime/qth264.c
+++ cinelerra-cvs/quicktime/qth264.c
@@ -1,4 +1,9 @@
+#include "config.h"
+#if HAVE_LIBAVCODEC_AVCODEC_H
+#include <libavcodec/avcodec.h>
+#else
 #include "avcodec.h"
+#endif
 #include "colormodels.h"
 #include "funcprotos.h"
 #include <pthread.h>
Index: cinelerra-cvs/quicktime/wma.c
===================================================================
--- cinelerra-cvs.orig/quicktime/wma.c
+++ cinelerra-cvs/quicktime/wma.c
@@ -1,4 +1,9 @@
+#include "config.h"
+#if HAVE_LIBAVCODEC_AVCODEC_H
+#include <libavcodec/avcodec.h>
+#else
 #include "avcodec.h"
+#endif
 #include "funcprotos.h"
 #include "quicktime.h"
 #include <string.h>



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-01 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01 21:20 [gentoo-commits] gentoo-x86 commit in media-video/cinelerra-cvs/files: cinelerra-cvs-gcc-4.3.patch cinelerra-cvs-ffmpegheaders.patch Alexis Ballier (aballier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox