Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/cinelerra-cvs/files: cinelerra-cvs-gcc-4.3.patch cinelerra-cvs-ffmpegheaders.patch
Date: Tue, 01 Apr 2008 21:20:19
Message-Id: E1Jgntw-0007Lp-Vf@stork.gentoo.org
1 aballier 08/04/01 21:20:16
2
3 Added: cinelerra-cvs-gcc-4.3.patch
4 cinelerra-cvs-ffmpegheaders.patch
5 Log:
6 bump a new snapshot with a gcc 4.3 fix by Martin Väth <vaeth@××××××××××××××××××××××××.de> (bug #215431) and a fix to build with latest ffmpeg by me
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.1 media-video/cinelerra-cvs/files/cinelerra-cvs-gcc-4.3.patch
11
12 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
13 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
14
15 Index: cinelerra-cvs-gcc-4.3.patch
16 ===================================================================
17 --- plugins/threshold/threshold.C
18 +++ plugins/threshold/threshold.C
19 @@ -461,13 +461,13 @@
20 }
21
22 template<>
23 -static inline float scale_to_range(int v)
24 +inline float scale_to_range(int v)
25 {
26 return (float) v / 0xff;
27 }
28
29 template<>
30 -static inline uint16_t scale_to_range(int v)
31 +inline uint16_t scale_to_range(int v)
32 {
33 return v << 8 | v;
34 }
35
36
37
38 1.1 media-video/cinelerra-cvs/files/cinelerra-cvs-ffmpegheaders.patch
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/cinelerra-cvs/files/cinelerra-cvs-ffmpegheaders.patch?rev=1.1&view=markup
41 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
42
43 Index: cinelerra-cvs-ffmpegheaders.patch
44 ===================================================================
45 Index: cinelerra-cvs/cinelerra/ffmpeg.h
46 ===================================================================
47 --- cinelerra-cvs.orig/cinelerra/ffmpeg.h
48 +++ cinelerra-cvs/cinelerra/ffmpeg.h
49 @@ -1,11 +1,20 @@
50 #ifndef FFMPEG_H
51 #define FFMPEG_H
52
53 +#include "config.h"
54 extern "C" {
55 +#if HAVE_LIBAVCODEC_AVCODEC_H
56 +#include <libavcodec/avcodec.h>
57 +#else
58 #include <avcodec.h>
59 +#endif
60 #ifdef HAVE_SWSCALER
61 +#if HAVE_LIBSWSCALE_SWSCALE_H
62 +#include <libswscale/swscale.h>
63 +#else
64 #include <swscale.h>
65 #endif
66 +#endif
67 };
68
69 #include "asset.h"
70 Index: cinelerra-cvs/cinelerra/fileac3.h
71 ===================================================================
72 --- cinelerra-cvs.orig/cinelerra/fileac3.h
73 +++ cinelerra-cvs/cinelerra/fileac3.h
74 @@ -1,8 +1,13 @@
75 #ifndef FILEAC3_H
76 #define FILEAC3_H
77
78 +#include "config.h"
79 extern "C" {
80 +#if HAVE_LIBAVCODEC_AVCODEC_H
81 +#include <libavcodec/avcodec.h>
82 +#else
83 #include <avcodec.h>
84 +#endif
85 };
86
87 #include "filebase.h"
88 Index: cinelerra-cvs/configure.in
89 ===================================================================
90 --- cinelerra-cvs.orig/configure.in
91 +++ cinelerra-cvs/configure.in
92 @@ -370,6 +370,10 @@ if test "x$with_external_ffmpeg" = "xyes
93 else
94 PKG_CHECK_MODULES([FFMPEG], [libavcodec libpostproc])
95 fi
96 + AC_CHECK_HEADERS(ffmpeg/avcodec.h libavcodec/avcodec.h)
97 + AC_CHECK_HEADERS(ffmpeg/avformat.h libavformat/avformat.h)
98 + AC_CHECK_HEADERS(ffmpeg/avutil.h libavutil/avutil.h)
99 + AC_CHECK_HEADERS([ffmpeg/swscale.h libswscale/swscale.h])
100
101 else
102 FFMPEG_FOLDER=ffmpeg
103 Index: cinelerra-cvs/quicktime/mpeg4.c
104 ===================================================================
105 --- cinelerra-cvs.orig/quicktime/mpeg4.c
106 +++ cinelerra-cvs/quicktime/mpeg4.c
107 @@ -7,7 +7,12 @@
108
109
110
111 +#include "config.h"
112 +#if HAVE_LIBAVCODEC_AVCODEC_H
113 +#include <libavcodec/avcodec.h>
114 +#else
115 #include "avcodec.h"
116 +#endif
117 #include "colormodels.h"
118 #include "funcprotos.h"
119 #include "qtffmpeg.h"
120 Index: cinelerra-cvs/quicktime/qtffmpeg.h
121 ===================================================================
122 --- cinelerra-cvs.orig/quicktime/qtffmpeg.h
123 +++ cinelerra-cvs/quicktime/qtffmpeg.h
124 @@ -16,8 +16,12 @@
125 // Heroine Virtual.
126
127
128 -
129 +#include "config.h"
130 +#if HAVE_LIBAVCODEC_AVCODEC_H
131 +#include <libavcodec/avcodec.h>
132 +#else
133 #include "avcodec.h"
134 +#endif
135 #include "qtprivate.h"
136
137
138 Index: cinelerra-cvs/quicktime/qth264.c
139 ===================================================================
140 --- cinelerra-cvs.orig/quicktime/qth264.c
141 +++ cinelerra-cvs/quicktime/qth264.c
142 @@ -1,4 +1,9 @@
143 +#include "config.h"
144 +#if HAVE_LIBAVCODEC_AVCODEC_H
145 +#include <libavcodec/avcodec.h>
146 +#else
147 #include "avcodec.h"
148 +#endif
149 #include "colormodels.h"
150 #include "funcprotos.h"
151 #include <pthread.h>
152 Index: cinelerra-cvs/quicktime/wma.c
153 ===================================================================
154 --- cinelerra-cvs.orig/quicktime/wma.c
155 +++ cinelerra-cvs/quicktime/wma.c
156 @@ -1,4 +1,9 @@
157 +#include "config.h"
158 +#if HAVE_LIBAVCODEC_AVCODEC_H
159 +#include <libavcodec/avcodec.h>
160 +#else
161 #include "avcodec.h"
162 +#endif
163 #include "funcprotos.h"
164 #include "quicktime.h"
165 #include <string.h>
166
167
168
169 --
170 gentoo-commits@l.g.o mailing list