1 |
commit: 8b1751482b69bdc9cfc8a98ffdd5719928ebb1f2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 29 12:51:18 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 12:54:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b175148 |
7 |
|
8 |
media-libs/mediastreamer: Remove last-rited package |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
media-libs/mediastreamer/Manifest | 1 - |
13 |
.../files/mediastreamer-2.9.0-ffmpeg3.patch | 482 --------------------- |
14 |
.../files/mediastreamer-2.9.0-ffmpeg4.patch | 22 - |
15 |
.../files/mediastreamer-2.9.0-libav9.patch | 120 ----- |
16 |
.../files/mediastreamer-2.9.0-tests.patch | 26 -- |
17 |
.../files/mediastreamer-2.9.0-underlinking.patch | 57 --- |
18 |
.../files/mediastreamer-2.9.0-v4l-automagic.patch | 55 --- |
19 |
.../files/mediastreamer-2.9.0-xxd.patch | 18 - |
20 |
.../mediastreamer/mediastreamer-2.9.0-r2.ebuild | 191 -------- |
21 |
media-libs/mediastreamer/metadata.xml | 20 - |
22 |
profiles/package.mask | 6 - |
23 |
11 files changed, 998 deletions(-) |
24 |
|
25 |
diff --git a/media-libs/mediastreamer/Manifest b/media-libs/mediastreamer/Manifest |
26 |
deleted file mode 100644 |
27 |
index 4c93a71d607..00000000000 |
28 |
--- a/media-libs/mediastreamer/Manifest |
29 |
+++ /dev/null |
30 |
@@ -1 +0,0 @@ |
31 |
-DIST mediastreamer-2.9.0.tar.gz 3578877 BLAKE2B 14db241196f5d98cd7fc06ebe9e59317d47248a6c0ba103c4382ad5a2e48ebf87293f344320215380a0b9ddf76c7d4986db2c27cf114734d883505424c21a6a7 SHA512 8c31ab07c659dce84c410dfb5814b6cdf3defcd4055814922f58e2886bfeecfd5bab294c408858a29e72fcf53f35a1f7748113e1f2863baa329daedae07ef2f0 |
32 |
|
33 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-ffmpeg3.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-ffmpeg3.patch |
34 |
deleted file mode 100644 |
35 |
index a536270897b..00000000000 |
36 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-ffmpeg3.patch |
37 |
+++ /dev/null |
38 |
@@ -1,482 +0,0 @@ |
39 |
-Index: mediastreamer-2.9.0/src/utils/ffmpeg-priv.h |
40 |
-=================================================================== |
41 |
---- mediastreamer-2.9.0.orig/src/utils/ffmpeg-priv.h |
42 |
-+++ mediastreamer-2.9.0/src/utils/ffmpeg-priv.h |
43 |
-@@ -69,9 +69,6 @@ static inline int avcodec_decode_video2( |
44 |
- return avcodec_decode_video(avctx,picture, got_picture_ptr,avpkt->data,avpkt->size); |
45 |
- } |
46 |
- #endif |
47 |
--#if (LIBAVCODEC_VERSION_MAJOR >= 56) |
48 |
--#include <libavcodec/old_codec_ids.h> |
49 |
--#endif |
50 |
- #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54,25,0) |
51 |
- #define CodecID AVCodecID |
52 |
- #endif |
53 |
-Index: mediastreamer-2.9.0/src/videofilters/h264dec.c |
54 |
-=================================================================== |
55 |
---- mediastreamer-2.9.0.orig/src/videofilters/h264dec.c |
56 |
-+++ mediastreamer-2.9.0/src/videofilters/h264dec.c |
57 |
-@@ -56,7 +56,7 @@ static void ffmpeg_init(){ |
58 |
- static void dec_open(DecData *d){ |
59 |
- AVCodec *codec; |
60 |
- int error; |
61 |
-- codec=avcodec_find_decoder(CODEC_ID_H264); |
62 |
-+ codec=avcodec_find_decoder(AV_CODEC_ID_H264); |
63 |
- if (codec==NULL) ms_fatal("Could not find H264 decoder in ffmpeg."); |
64 |
- avcodec_get_context_defaults3(&d->av_context, NULL); |
65 |
- error=avcodec_open2(&d->av_context,codec, NULL); |
66 |
-@@ -119,7 +119,7 @@ static mblk_t *get_as_yuvmsg(MSFilter *f |
67 |
- s->outbuf.w=ctx->width; |
68 |
- s->outbuf.h=ctx->height; |
69 |
- s->sws_ctx=sws_getContext(ctx->width,ctx->height,ctx->pix_fmt, |
70 |
-- ctx->width,ctx->height,PIX_FMT_YUV420P,SWS_FAST_BILINEAR, |
71 |
-+ ctx->width,ctx->height,AV_PIX_FMT_YUV420P,SWS_FAST_BILINEAR, |
72 |
- NULL, NULL, NULL); |
73 |
- } |
74 |
- #if LIBSWSCALE_VERSION_INT >= AV_VERSION_INT(0,9,0) |
75 |
-@@ -272,7 +272,7 @@ static void dec_process(MSFilter *f){ |
76 |
- int len; |
77 |
- int got_picture=0; |
78 |
- AVPacket pkt; |
79 |
-- avcodec_get_frame_defaults(&orig); |
80 |
-+ av_frame_unref(&orig); |
81 |
- av_init_packet(&pkt); |
82 |
- pkt.data = p; |
83 |
- pkt.size = end-p; |
84 |
-Index: mediastreamer-2.9.0/src/videofilters/jpegwriter.c |
85 |
-=================================================================== |
86 |
---- mediastreamer-2.9.0.orig/src/videofilters/jpegwriter.c |
87 |
-+++ mediastreamer-2.9.0/src/videofilters/jpegwriter.c |
88 |
-@@ -36,9 +36,9 @@ typedef struct { |
89 |
- |
90 |
- static void jpg_init(MSFilter *f){ |
91 |
- JpegWriter *s=ms_new0(JpegWriter,1); |
92 |
-- s->codec=avcodec_find_encoder(CODEC_ID_MJPEG); |
93 |
-+ s->codec=avcodec_find_encoder(AV_CODEC_ID_MJPEG); |
94 |
- if (s->codec==NULL){ |
95 |
-- ms_error("Could not find CODEC_ID_MJPEG !"); |
96 |
-+ ms_error("Could not find AV_CODEC_ID_MJPEG !"); |
97 |
- } |
98 |
- f->data=s; |
99 |
- } |
100 |
-@@ -96,7 +96,7 @@ static void jpg_process(MSFilter *f){ |
101 |
- avctx->height=yuvbuf.h; |
102 |
- avctx->time_base.num = 1; |
103 |
- avctx->time_base.den =1; |
104 |
-- avctx->pix_fmt=PIX_FMT_YUVJ420P; |
105 |
-+ avctx->pix_fmt=AV_PIX_FMT_YUVJ420P; |
106 |
- |
107 |
- error=avcodec_open2(avctx,s->codec,NULL); |
108 |
- if (error!=0) { |
109 |
-@@ -105,7 +105,7 @@ static void jpg_process(MSFilter *f){ |
110 |
- av_free(avctx); |
111 |
- return; |
112 |
- } |
113 |
-- sws_ctx=sws_getContext(avctx->width,avctx->height,PIX_FMT_YUV420P, |
114 |
-+ sws_ctx=sws_getContext(avctx->width,avctx->height,AV_PIX_FMT_YUV420P, |
115 |
- avctx->width,avctx->height,avctx->pix_fmt,SWS_FAST_BILINEAR,NULL, NULL, NULL); |
116 |
- if (sws_ctx==NULL) { |
117 |
- ms_error(" sws_getContext() failed."); |
118 |
-@@ -126,13 +126,18 @@ static void jpg_process(MSFilter *f){ |
119 |
- } |
120 |
- sws_freeContext(sws_ctx); |
121 |
- |
122 |
-- avcodec_get_frame_defaults(&pict); |
123 |
-+ av_frame_unref(&pict); |
124 |
- avpicture_fill((AVPicture*)&pict,(uint8_t*)jpegm->b_rptr,avctx->pix_fmt,avctx->width,avctx->height); |
125 |
-- error=avcodec_encode_video(avctx, (uint8_t*)comp_buf,comp_buf_sz, &pict); |
126 |
-+ AVPacket pkt; |
127 |
-+ av_init_packet(&pkt); |
128 |
-+ pkt.buf = (uint8_t*)comp_buf; |
129 |
-+ pkt.size = comp_buf_sz; |
130 |
-+ int got_packet; |
131 |
-+ error=avcodec_encode_video2(avctx, &pkt, &pict, &got_packet); |
132 |
- if (error<0){ |
133 |
- ms_error("Could not encode jpeg picture."); |
134 |
-- }else{ |
135 |
-- if (fwrite(comp_buf,error,1,s->file)>0){ |
136 |
-+ }else if(got_packet){ |
137 |
-+ if (fwrite(comp_buf,pkt.size,1,s->file)>0){ |
138 |
- ms_message("Snapshot done"); |
139 |
- }else{ |
140 |
- ms_error("Error writing snapshot."); |
141 |
-Index: mediastreamer-2.9.0/src/videofilters/nowebcam.c |
142 |
-=================================================================== |
143 |
---- mediastreamer-2.9.0.orig/src/videofilters/nowebcam.c |
144 |
-+++ mediastreamer-2.9.0/src/videofilters/nowebcam.c |
145 |
-@@ -61,7 +61,7 @@ static mblk_t *jpeg2yuv(uint8_t *jpgbuf, |
146 |
- struct SwsContext *sws_ctx; |
147 |
- AVPacket pkt; |
148 |
- MSPicture dest; |
149 |
-- AVCodec *codec=avcodec_find_decoder(CODEC_ID_MJPEG); |
150 |
-+ AVCodec *codec=avcodec_find_decoder(AV_CODEC_ID_MJPEG); |
151 |
- |
152 |
- if (codec==NULL){ |
153 |
- ms_error("Could not find MJPEG decoder in ffmpeg."); |
154 |
-@@ -84,9 +84,9 @@ static mblk_t *jpeg2yuv(uint8_t *jpgbuf, |
155 |
- } |
156 |
- ret=ms_yuv_buf_alloc(&dest, reqsize->width,reqsize->height); |
157 |
- /* not using SWS_FAST_BILINEAR because it doesn't play well with |
158 |
-- * av_context.pix_fmt set to PIX_FMT_YUVJ420P by jpeg decoder */ |
159 |
-+ * av_context.pix_fmt set to AV_PIX_FMT_YUVJ420P by jpeg decoder */ |
160 |
- sws_ctx=sws_getContext(av_context.width,av_context.height,av_context.pix_fmt, |
161 |
-- reqsize->width,reqsize->height,PIX_FMT_YUV420P,SWS_BILINEAR, |
162 |
-+ reqsize->width,reqsize->height,AV_PIX_FMT_YUV420P,SWS_BILINEAR, |
163 |
- NULL, NULL, NULL); |
164 |
- if (sws_ctx==NULL) { |
165 |
- ms_error("jpeg2yuv: ms_sws_getContext() failed."); |
166 |
-Index: mediastreamer-2.9.0/src/videofilters/videodec.c |
167 |
-=================================================================== |
168 |
---- mediastreamer-2.9.0.orig/src/videofilters/videodec.c |
169 |
-+++ mediastreamer-2.9.0/src/videofilters/videodec.c |
170 |
-@@ -40,7 +40,7 @@ typedef struct DecState{ |
171 |
- YuvBuf outbuf; |
172 |
- mblk_t *yuv_msg; |
173 |
- struct SwsContext *sws_ctx; |
174 |
-- enum PixelFormat output_pix_fmt; |
175 |
-+ enum AVPixelFormat output_pix_fmt; |
176 |
- uint8_t dci[512]; |
177 |
- int dci_size; |
178 |
- uint64_t last_error_reported_time; |
179 |
-@@ -58,7 +58,7 @@ static void dec_init(MSFilter *f, enum C |
180 |
- s->codec=cid; |
181 |
- s->input=NULL; |
182 |
- s->yuv_msg=NULL; |
183 |
-- s->output_pix_fmt=PIX_FMT_YUV420P; |
184 |
-+ s->output_pix_fmt=AV_PIX_FMT_YUV420P; |
185 |
- s->snow_initialized=FALSE; |
186 |
- s->outbuf.w=0; |
187 |
- s->outbuf.h=0; |
188 |
-@@ -77,19 +77,19 @@ static void dec_init(MSFilter *f, enum C |
189 |
- } |
190 |
- |
191 |
- static void dec_h263_init(MSFilter *f){ |
192 |
-- dec_init(f,CODEC_ID_H263); |
193 |
-+ dec_init(f,AV_CODEC_ID_H263); |
194 |
- } |
195 |
- |
196 |
- static void dec_mpeg4_init(MSFilter *f){ |
197 |
-- dec_init(f,CODEC_ID_MPEG4); |
198 |
-+ dec_init(f,AV_CODEC_ID_MPEG4); |
199 |
- } |
200 |
- |
201 |
- static void dec_mjpeg_init(MSFilter *f){ |
202 |
-- dec_init(f,CODEC_ID_MJPEG); |
203 |
-+ dec_init(f,AV_CODEC_ID_MJPEG); |
204 |
- } |
205 |
- |
206 |
- static void dec_snow_init(MSFilter *f){ |
207 |
-- dec_init(f,CODEC_ID_SNOW); |
208 |
-+ dec_init(f,AV_CODEC_ID_SNOW); |
209 |
- } |
210 |
- |
211 |
- static void dec_uninit(MSFilter *f){ |
212 |
-@@ -134,10 +134,10 @@ static void dec_preprocess(MSFilter *f){ |
213 |
- s->first_image_decoded = FALSE; |
214 |
- if (s->av_context.codec==NULL){ |
215 |
- /* we must know picture size before initializing snow decoder*/ |
216 |
-- if (s->codec!=CODEC_ID_SNOW){ |
217 |
-+ if (s->codec!=AV_CODEC_ID_SNOW){ |
218 |
- error=avcodec_open2(&s->av_context, s->av_codec,NULL); |
219 |
- if (error!=0) ms_error("avcodec_open2() failed: %i",error); |
220 |
-- if (s->codec==CODEC_ID_MPEG4 && s->dci_size>0){ |
221 |
-+ if (s->codec==AV_CODEC_ID_MPEG4 && s->dci_size>0){ |
222 |
- s->av_context.extradata=s->dci; |
223 |
- s->av_context.extradata_size=s->dci_size; |
224 |
- } |
225 |
-@@ -643,8 +643,8 @@ static void dec_process_frame(MSFilter * |
226 |
- |
227 |
- if (f->desc->id==MS_H263_DEC_ID) inm=skip_rfc2429_header(inm); |
228 |
- else if (f->desc->id==MS_H263_OLD_DEC_ID) inm=skip_rfc2190_header(inm); |
229 |
-- else if (s->codec==CODEC_ID_SNOW && s->input==NULL) inm=parse_snow_header(s,inm); |
230 |
-- else if (s->codec==CODEC_ID_MJPEG && f->desc->id==MS_JPEG_DEC_ID) inm=read_rfc2435_header(s,inm); |
231 |
-+ else if (s->codec==AV_CODEC_ID_SNOW && s->input==NULL) inm=parse_snow_header(s,inm); |
232 |
-+ else if (s->codec==AV_CODEC_ID_MJPEG && f->desc->id==MS_JPEG_DEC_ID) inm=read_rfc2435_header(s,inm); |
233 |
- |
234 |
- if (inm){ |
235 |
- /* accumulate the video packet until we have the rtp markbit*/ |
236 |
-Index: mediastreamer-2.9.0/src/videofilters/videoenc.c |
237 |
-=================================================================== |
238 |
---- mediastreamer-2.9.0.orig/src/videofilters/videoenc.c |
239 |
-+++ mediastreamer-2.9.0/src/videofilters/videoenc.c |
240 |
-@@ -223,19 +223,19 @@ static void enc_init(MSFilter *f, enum C |
241 |
- } |
242 |
- |
243 |
- static void enc_h263_init(MSFilter *f){ |
244 |
-- enc_init(f,CODEC_ID_H263P); |
245 |
-+ enc_init(f,AV_CODEC_ID_H263P); |
246 |
- } |
247 |
- |
248 |
- static void enc_mpeg4_init(MSFilter *f){ |
249 |
-- enc_init(f,CODEC_ID_MPEG4); |
250 |
-+ enc_init(f,AV_CODEC_ID_MPEG4); |
251 |
- } |
252 |
- |
253 |
- static void enc_snow_init(MSFilter *f){ |
254 |
-- enc_init(f,CODEC_ID_SNOW); |
255 |
-+ enc_init(f,AV_CODEC_ID_SNOW); |
256 |
- } |
257 |
- |
258 |
- static void enc_mjpeg_init(MSFilter *f){ |
259 |
-- enc_init(f,CODEC_ID_MJPEG); |
260 |
-+ enc_init(f,AV_CODEC_ID_MJPEG); |
261 |
- } |
262 |
- |
263 |
- static void prepare(EncState *s){ |
264 |
-@@ -243,7 +243,7 @@ static void prepare(EncState *s){ |
265 |
- const int max_br_vbv=128000; |
266 |
- |
267 |
- avcodec_get_context_defaults3(c, NULL); |
268 |
-- if (s->codec==CODEC_ID_MJPEG) |
269 |
-+ if (s->codec==AV_CODEC_ID_MJPEG) |
270 |
- { |
271 |
- ms_message("Codec bitrate set to %i",c->bit_rate); |
272 |
- c->width = s->vsize.width; |
273 |
-@@ -251,7 +251,7 @@ static void prepare(EncState *s){ |
274 |
- c->time_base.num = 1; |
275 |
- c->time_base.den = (int)s->fps; |
276 |
- c->gop_size=(int)s->fps*5; /*emit I frame every 5 seconds*/ |
277 |
-- c->pix_fmt=PIX_FMT_YUVJ420P; |
278 |
-+ c->pix_fmt=AV_PIX_FMT_YUVJ420P; |
279 |
- s->comp_buf=allocb(c->bit_rate*2,0); |
280 |
- return; |
281 |
- } |
282 |
-@@ -269,7 +269,7 @@ static void prepare(EncState *s){ |
283 |
- |
284 |
- /* ffmpeg vbv rate control consumes too much cpu above a certain target bitrate. |
285 |
- We don't use it above max_br_vbv */ |
286 |
-- if (s->codec!=CODEC_ID_SNOW && s->maxbr<max_br_vbv){ |
287 |
-+ if (s->codec!=AV_CODEC_ID_SNOW && s->maxbr<max_br_vbv){ |
288 |
- /*snow does not like 1st pass rate control*/ |
289 |
- c->rc_max_rate=c->bit_rate; |
290 |
- c->rc_min_rate=0; |
291 |
-@@ -285,9 +285,9 @@ static void prepare(EncState *s){ |
292 |
- c->time_base.num = 1; |
293 |
- c->time_base.den = (int)s->fps; |
294 |
- c->gop_size=(int)s->fps*10; /*emit I frame every 10 seconds*/ |
295 |
-- c->pix_fmt=PIX_FMT_YUV420P; |
296 |
-+ c->pix_fmt=AV_PIX_FMT_YUV420P; |
297 |
- s->comp_buf=allocb(c->bit_rate*2,0); |
298 |
-- if (s->codec==CODEC_ID_SNOW){ |
299 |
-+ if (s->codec==AV_CODEC_ID_SNOW){ |
300 |
- c->strict_std_compliance=-2; |
301 |
- } |
302 |
- |
303 |
-@@ -304,7 +304,7 @@ static void prepare_h263(EncState *s){ |
304 |
- #endif |
305 |
- c->rtp_payload_size = s->mtu/2; |
306 |
- if (s->profile==0){ |
307 |
-- s->codec=CODEC_ID_H263; |
308 |
-+ s->codec=AV_CODEC_ID_H263; |
309 |
- }else{ |
310 |
- /* |
311 |
- c->flags|=CODEC_FLAG_H263P_UMV; |
312 |
-@@ -313,7 +313,7 @@ static void prepare_h263(EncState *s){ |
313 |
- c->flags|=CODEC_FLAG_OBMC; |
314 |
- c->flags|=CODEC_FLAG_AC_PRED; |
315 |
- */ |
316 |
-- s->codec=CODEC_ID_H263P; |
317 |
-+ s->codec=AV_CODEC_ID_H263P; |
318 |
- } |
319 |
- } |
320 |
- |
321 |
-@@ -331,13 +331,13 @@ static void enc_preprocess(MSFilter *f){ |
322 |
- EncState *s=(EncState*)f->data; |
323 |
- int error; |
324 |
- prepare(s); |
325 |
-- if (s->codec==CODEC_ID_H263P || s->codec==CODEC_ID_H263) |
326 |
-+ if (s->codec==AV_CODEC_ID_H263P || s->codec==AV_CODEC_ID_H263) |
327 |
- prepare_h263(s); |
328 |
-- else if (s->codec==CODEC_ID_MPEG4) |
329 |
-+ else if (s->codec==AV_CODEC_ID_MPEG4) |
330 |
- prepare_mpeg4(s); |
331 |
-- else if (s->codec==CODEC_ID_SNOW){ |
332 |
-+ else if (s->codec==AV_CODEC_ID_SNOW){ |
333 |
- /**/ |
334 |
-- }else if (s->codec==CODEC_ID_MJPEG){ |
335 |
-+ }else if (s->codec==AV_CODEC_ID_MJPEG){ |
336 |
- /**/ |
337 |
- }else { |
338 |
- ms_error("Unsupported codec id %i",s->codec); |
339 |
-@@ -724,12 +724,12 @@ static void split_and_send(MSFilter *f, |
340 |
- uint8_t *psc; |
341 |
- uint32_t timestamp=f->ticker->time*90LL; |
342 |
- |
343 |
-- if (s->codec==CODEC_ID_MPEG4 || s->codec==CODEC_ID_SNOW) |
344 |
-+ if (s->codec==AV_CODEC_ID_MPEG4 || s->codec==AV_CODEC_ID_SNOW) |
345 |
- { |
346 |
- mpeg4_fragment_and_send(f,s,frame,timestamp); |
347 |
- return; |
348 |
- } |
349 |
-- else if (s->codec==CODEC_ID_MJPEG) |
350 |
-+ else if (s->codec==AV_CODEC_ID_MJPEG) |
351 |
- { |
352 |
- mblk_t *lqt=NULL; |
353 |
- mblk_t *cqt=NULL; |
354 |
-@@ -765,7 +765,7 @@ static void split_and_send(MSFilter *f, |
355 |
- |
356 |
- static void process_frame(MSFilter *f, mblk_t *inm){ |
357 |
- EncState *s=(EncState*)f->data; |
358 |
-- AVFrame pict; |
359 |
-+ AVFrame pict = {}; |
360 |
- AVCodecContext *c=&s->av_context; |
361 |
- int error; |
362 |
- mblk_t *comp_buf=s->comp_buf; |
363 |
-@@ -774,7 +774,7 @@ static void process_frame(MSFilter *f, m |
364 |
- |
365 |
- ms_yuv_buf_init_from_mblk(&yuv, inm); |
366 |
- /* convert image if necessary */ |
367 |
-- avcodec_get_frame_defaults(&pict); |
368 |
-+ av_frame_unref(&pict); |
369 |
- avpicture_fill((AVPicture*)&pict,yuv.planes[0],c->pix_fmt,c->width,c->height); |
370 |
- |
371 |
- /* timestamp used by ffmpeg, unset here */ |
372 |
-@@ -789,7 +789,7 @@ static void process_frame(MSFilter *f, m |
373 |
- s->req_vfu=FALSE; |
374 |
- } |
375 |
- comp_buf->b_rptr=comp_buf->b_wptr=comp_buf->b_datap->db_base; |
376 |
-- if (s->codec==CODEC_ID_SNOW){ |
377 |
-+ if (s->codec==AV_CODEC_ID_SNOW){ |
378 |
- //prepend picture size |
379 |
- uint32_t header=((s->vsize.width&0xffff)<<16) | (s->vsize.height&0xffff); |
380 |
- *(uint32_t*)comp_buf->b_wptr=htonl(header); |
381 |
-@@ -797,10 +797,15 @@ static void process_frame(MSFilter *f, m |
382 |
- comp_buf_sz-=4; |
383 |
- } |
384 |
- |
385 |
-- error=avcodec_encode_video(c, (uint8_t*)comp_buf->b_wptr,comp_buf_sz, &pict); |
386 |
-+ AVPacket pkt; |
387 |
-+ av_init_packet(&pkt); |
388 |
-+ pkt.data = (uint8_t*)comp_buf->b_wptr; |
389 |
-+ pkt.size = comp_buf_sz; |
390 |
-+ int got_packet; |
391 |
-+ error=avcodec_encode_video2(c, &pkt, &pict, &got_packet); |
392 |
- |
393 |
- if (error<=0) ms_warning("ms_AVencoder_process: error %i.",error); |
394 |
-- else{ |
395 |
-+ else if(got_packet){ |
396 |
- s->framenum++; |
397 |
- if (s->framenum==1){ |
398 |
- video_starter_first_frame (&s->starter,f->ticker->time); |
399 |
-@@ -808,7 +813,7 @@ static void process_frame(MSFilter *f, m |
400 |
- if (c->coded_frame->pict_type==FF_I_TYPE){ |
401 |
- ms_message("Emitting I-frame"); |
402 |
- } |
403 |
-- comp_buf->b_wptr+=error; |
404 |
-+ comp_buf->b_wptr+=pkt.size; |
405 |
- split_and_send(f,s,comp_buf); |
406 |
- } |
407 |
- freemsg(inm); |
408 |
-@@ -837,7 +842,7 @@ static int enc_get_br(MSFilter *f, void |
409 |
- |
410 |
- static int enc_set_br(MSFilter *f, void *arg){ |
411 |
- EncState *s=(EncState*)f->data; |
412 |
-- bool_t snow=s->codec==CODEC_ID_SNOW; |
413 |
-+ bool_t snow=s->codec==AV_CODEC_ID_SNOW; |
414 |
- s->maxbr=*(int*)arg; |
415 |
- if (s->av_context.codec!=NULL){ |
416 |
- /*when we are processing, apply new settings immediately*/ |
417 |
-@@ -847,11 +852,11 @@ static int enc_set_br(MSFilter *f, void |
418 |
- ms_filter_unlock(f); |
419 |
- return 0; |
420 |
- } |
421 |
-- if (s->maxbr>=1024000 && s->codec!=CODEC_ID_H263P){ |
422 |
-+ if (s->maxbr>=1024000 && s->codec!=AV_CODEC_ID_H263P){ |
423 |
- s->vsize.width = MS_VIDEO_SIZE_SVGA_W; |
424 |
- s->vsize.height = MS_VIDEO_SIZE_SVGA_H; |
425 |
- s->fps=25; |
426 |
-- }else if (s->maxbr>=800000 && s->codec!=CODEC_ID_H263P){ |
427 |
-+ }else if (s->maxbr>=800000 && s->codec!=AV_CODEC_ID_H263P){ |
428 |
- s->vsize.width = MS_VIDEO_SIZE_VGA_W; |
429 |
- s->vsize.height = MS_VIDEO_SIZE_VGA_H; |
430 |
- s->fps=25; |
431 |
-@@ -864,7 +869,7 @@ static int enc_set_br(MSFilter *f, void |
432 |
- s->vsize.height=MS_VIDEO_SIZE_CIF_H; |
433 |
- s->fps=17; |
434 |
- s->qmin=3; |
435 |
-- }else if (s->maxbr>=170000 && s->codec!=CODEC_ID_H263P && s->codec!=CODEC_ID_H263){ |
436 |
-+ }else if (s->maxbr>=170000 && s->codec!=AV_CODEC_ID_H263P && s->codec!=AV_CODEC_ID_H263){ |
437 |
- s->vsize.width=MS_VIDEO_SIZE_QVGA_W; |
438 |
- s->vsize.height=MS_VIDEO_SIZE_QVGA_H; |
439 |
- s->fps=15; |
440 |
-@@ -1075,15 +1080,15 @@ MSFilterDesc ms_mjpeg_enc_desc={ |
441 |
- |
442 |
- void __register_ffmpeg_encoders_if_possible(void){ |
443 |
- ms_ffmpeg_check_init(); |
444 |
-- if (avcodec_find_encoder(CODEC_ID_MPEG4)) |
445 |
-+ if (avcodec_find_encoder(AV_CODEC_ID_MPEG4)) |
446 |
- ms_filter_register(&ms_mpeg4_enc_desc); |
447 |
-- if (avcodec_find_encoder(CODEC_ID_H263)){ |
448 |
-+ if (avcodec_find_encoder(AV_CODEC_ID_H263)){ |
449 |
- ms_filter_register(&ms_h263_enc_desc); |
450 |
- ms_filter_register(&ms_h263_old_enc_desc); |
451 |
- } |
452 |
-- if (avcodec_find_encoder(CODEC_ID_SNOW)) |
453 |
-+ if (avcodec_find_encoder(AV_CODEC_ID_SNOW)) |
454 |
- ms_filter_register(&ms_snow_enc_desc); |
455 |
-- if (avcodec_find_encoder(CODEC_ID_MJPEG)) |
456 |
-+ if (avcodec_find_encoder(AV_CODEC_ID_MJPEG)) |
457 |
- { |
458 |
- ms_filter_register(&ms_mjpeg_enc_desc); |
459 |
- } |
460 |
-Index: mediastreamer-2.9.0/src/voip/msvideo.c |
461 |
-=================================================================== |
462 |
---- mediastreamer-2.9.0.orig/src/voip/msvideo.c |
463 |
-+++ mediastreamer-2.9.0/src/voip/msvideo.c |
464 |
-@@ -351,21 +351,21 @@ void ms_rgb_to_yuv(const uint8_t rgb[3], |
465 |
- int ms_pix_fmt_to_ffmpeg(MSPixFmt fmt){ |
466 |
- switch(fmt){ |
467 |
- case MS_RGBA32: |
468 |
-- return PIX_FMT_RGBA; |
469 |
-+ return AV_PIX_FMT_RGBA; |
470 |
- case MS_RGB24: |
471 |
-- return PIX_FMT_RGB24; |
472 |
-+ return AV_PIX_FMT_RGB24; |
473 |
- case MS_RGB24_REV: |
474 |
-- return PIX_FMT_BGR24; |
475 |
-+ return AV_PIX_FMT_BGR24; |
476 |
- case MS_YUV420P: |
477 |
-- return PIX_FMT_YUV420P; |
478 |
-+ return AV_PIX_FMT_YUV420P; |
479 |
- case MS_YUYV: |
480 |
-- return PIX_FMT_YUYV422; |
481 |
-+ return AV_PIX_FMT_YUYV422; |
482 |
- case MS_UYVY: |
483 |
-- return PIX_FMT_UYVY422; |
484 |
-+ return AV_PIX_FMT_UYVY422; |
485 |
- case MS_YUY2: |
486 |
-- return PIX_FMT_YUYV422; /* <- same as MS_YUYV */ |
487 |
-+ return AV_PIX_FMT_YUYV422; /* <- same as MS_YUYV */ |
488 |
- case MS_RGB565: |
489 |
-- return PIX_FMT_RGB565; |
490 |
-+ return AV_PIX_FMT_RGB565; |
491 |
- default: |
492 |
- ms_fatal("format not supported."); |
493 |
- return -1; |
494 |
-@@ -375,19 +375,19 @@ int ms_pix_fmt_to_ffmpeg(MSPixFmt fmt){ |
495 |
- |
496 |
- MSPixFmt ffmpeg_pix_fmt_to_ms(int fmt){ |
497 |
- switch(fmt){ |
498 |
-- case PIX_FMT_RGB24: |
499 |
-+ case AV_PIX_FMT_RGB24: |
500 |
- return MS_RGB24; |
501 |
-- case PIX_FMT_BGR24: |
502 |
-+ case AV_PIX_FMT_BGR24: |
503 |
- return MS_RGB24_REV; |
504 |
-- case PIX_FMT_YUV420P: |
505 |
-+ case AV_PIX_FMT_YUV420P: |
506 |
- return MS_YUV420P; |
507 |
-- case PIX_FMT_YUYV422: |
508 |
-+ case AV_PIX_FMT_YUYV422: |
509 |
- return MS_YUYV; /* same as MS_YUY2 */ |
510 |
-- case PIX_FMT_UYVY422: |
511 |
-+ case AV_PIX_FMT_UYVY422: |
512 |
- return MS_UYVY; |
513 |
-- case PIX_FMT_RGBA: |
514 |
-+ case AV_PIX_FMT_RGBA: |
515 |
- return MS_RGBA32; |
516 |
-- case PIX_FMT_RGB565: |
517 |
-+ case AV_PIX_FMT_RGB565: |
518 |
- return MS_RGB565; |
519 |
- default: |
520 |
- ms_fatal("format not supported."); |
521 |
|
522 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-ffmpeg4.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-ffmpeg4.patch |
523 |
deleted file mode 100644 |
524 |
index 7a164d51639..00000000000 |
525 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-ffmpeg4.patch |
526 |
+++ /dev/null |
527 |
@@ -1,22 +0,0 @@ |
528 |
-diff --git a/src/videofilters/nowebcam.c b/src/videofilters/nowebcam.c |
529 |
-index 60e38530..52cc3359 100644 |
530 |
---- a/src/videofilters/nowebcam.c |
531 |
-+++ b/src/videofilters/nowebcam.c |
532 |
-@@ -32,7 +32,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
533 |
- #ifndef NO_FFMPEG |
534 |
- #include "ffmpeg-priv.h" |
535 |
- #else |
536 |
--#define FF_INPUT_BUFFER_PADDING_SIZE 32 |
537 |
-+#define AV_INPUT_BUFFER_PADDING_SIZE 32 |
538 |
- #endif |
539 |
- |
540 |
- #if TARGET_OS_IPHONE |
541 |
-@@ -1740,7 +1740,7 @@ mblk_t *ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize){ |
542 |
- m=ms_load_generate_yuv(reqsize); |
543 |
- return m; |
544 |
- } |
545 |
-- jpgbuf=(uint8_t*)ms_malloc0(statbuf.st_size + FF_INPUT_BUFFER_PADDING_SIZE); |
546 |
-+ jpgbuf=(uint8_t*)ms_malloc0(statbuf.st_size + AV_INPUT_BUFFER_PADDING_SIZE); |
547 |
- if (jpgbuf==NULL) |
548 |
- { |
549 |
- close(fd); |
550 |
\ No newline at end of file |
551 |
|
552 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-libav9.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-libav9.patch |
553 |
deleted file mode 100644 |
554 |
index 078f360b338..00000000000 |
555 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-libav9.patch |
556 |
+++ /dev/null |
557 |
@@ -1,120 +0,0 @@ |
558 |
-diff --git a/src/videofilters/h264dec.c b/src/videofilters/h264dec.c |
559 |
-index 38881c1..f306723 100644 |
560 |
---- a/src/videofilters/h264dec.c |
561 |
-+++ b/src/videofilters/h264dec.c |
562 |
-@@ -58,10 +58,10 @@ static void dec_open(DecData *d){ |
563 |
- int error; |
564 |
- codec=avcodec_find_decoder(CODEC_ID_H264); |
565 |
- if (codec==NULL) ms_fatal("Could not find H264 decoder in ffmpeg."); |
566 |
-- avcodec_get_context_defaults(&d->av_context); |
567 |
-- error=avcodec_open(&d->av_context,codec); |
568 |
-+ avcodec_get_context_defaults3(&d->av_context, NULL); |
569 |
-+ error=avcodec_open2(&d->av_context,codec, NULL); |
570 |
- if (error!=0){ |
571 |
-- ms_fatal("avcodec_open() failed."); |
572 |
-+ ms_fatal("avcodec_open2() failed."); |
573 |
- } |
574 |
- } |
575 |
- |
576 |
-diff --git a/src/videofilters/jpegwriter.c b/src/videofilters/jpegwriter.c |
577 |
-index 891f618..96f5d7f 100644 |
578 |
---- a/src/videofilters/jpegwriter.c |
579 |
-+++ b/src/videofilters/jpegwriter.c |
580 |
-@@ -90,7 +90,7 @@ static void jpg_process(MSFilter *f){ |
581 |
- mblk_t *jpegm; |
582 |
- struct SwsContext *sws_ctx; |
583 |
- |
584 |
-- AVCodecContext *avctx=avcodec_alloc_context(); |
585 |
-+ AVCodecContext *avctx=avcodec_alloc_context3(NULL); |
586 |
- |
587 |
- avctx->width=yuvbuf.w; |
588 |
- avctx->height=yuvbuf.h; |
589 |
-@@ -98,9 +98,9 @@ static void jpg_process(MSFilter *f){ |
590 |
- avctx->time_base.den =1; |
591 |
- avctx->pix_fmt=PIX_FMT_YUVJ420P; |
592 |
- |
593 |
-- error=avcodec_open(avctx,s->codec); |
594 |
-+ error=avcodec_open2(avctx,s->codec,NULL); |
595 |
- if (error!=0) { |
596 |
-- ms_error("avcodec_open() failed: %i",error); |
597 |
-+ ms_error("avcodec_open2() failed: %i",error); |
598 |
- cleanup(s,NULL); |
599 |
- av_free(avctx); |
600 |
- return; |
601 |
-diff --git a/src/videofilters/nowebcam.c b/src/videofilters/nowebcam.c |
602 |
-index 60e3853..329c453 100644 |
603 |
---- a/src/videofilters/nowebcam.c |
604 |
-+++ b/src/videofilters/nowebcam.c |
605 |
-@@ -68,9 +68,9 @@ static mblk_t *jpeg2yuv(uint8_t *jpgbuf, int bufsize, MSVideoSize *reqsize){ |
606 |
- return NULL; |
607 |
- } |
608 |
- |
609 |
-- avcodec_get_context_defaults(&av_context); |
610 |
-- if (avcodec_open(&av_context,codec)<0){ |
611 |
-- ms_error("jpeg2yuv: avcodec_open failed"); |
612 |
-+ avcodec_get_context_defaults3(&av_context, NULL); |
613 |
-+ if (avcodec_open2(&av_context,codec,NULL)<0){ |
614 |
-+ ms_error("jpeg2yuv: avcodec_open2 failed"); |
615 |
- return NULL; |
616 |
- } |
617 |
- av_init_packet(&pkt); |
618 |
-diff --git a/src/videofilters/videodec.c b/src/videofilters/videodec.c |
619 |
-index 494debf..c52e207 100644 |
620 |
---- a/src/videofilters/videodec.c |
621 |
-+++ b/src/videofilters/videodec.c |
622 |
-@@ -53,7 +53,7 @@ static void dec_init(MSFilter *f, enum CodecID cid){ |
623 |
- DecState *s=(DecState *)ms_new0(DecState,1); |
624 |
- ms_ffmpeg_check_init(); |
625 |
- |
626 |
-- avcodec_get_context_defaults(&s->av_context); |
627 |
-+ avcodec_get_context_defaults3(&s->av_context, NULL); |
628 |
- s->av_codec=NULL; |
629 |
- s->codec=cid; |
630 |
- s->input=NULL; |
631 |
-@@ -135,8 +135,8 @@ static void dec_preprocess(MSFilter *f){ |
632 |
- if (s->av_context.codec==NULL){ |
633 |
- /* we must know picture size before initializing snow decoder*/ |
634 |
- if (s->codec!=CODEC_ID_SNOW){ |
635 |
-- error=avcodec_open(&s->av_context, s->av_codec); |
636 |
-- if (error!=0) ms_error("avcodec_open() failed: %i",error); |
637 |
-+ error=avcodec_open2(&s->av_context, s->av_codec,NULL); |
638 |
-+ if (error!=0) ms_error("avcodec_open2() failed: %i",error); |
639 |
- if (s->codec==CODEC_ID_MPEG4 && s->dci_size>0){ |
640 |
- s->av_context.extradata=s->dci; |
641 |
- s->av_context.extradata_size=s->dci_size; |
642 |
-@@ -225,8 +225,8 @@ static mblk_t * parse_snow_header(DecState *s,mblk_t *inm){ |
643 |
- int error; |
644 |
- s->av_context.width=h>>16; |
645 |
- s->av_context.height=h&0xffff; |
646 |
-- error=avcodec_open(&s->av_context, s->av_codec); |
647 |
-- if (error!=0) ms_error("avcodec_open() failed for snow: %i",error); |
648 |
-+ error=avcodec_open2(&s->av_context, s->av_codec, NULL); |
649 |
-+ if (error!=0) ms_error("avcodec_open2() failed for snow: %i",error); |
650 |
- else { |
651 |
- s->snow_initialized=TRUE; |
652 |
- ms_message("Snow decoder initialized,size=%ix%i", |
653 |
-diff --git a/src/videofilters/videoenc.c b/src/videofilters/videoenc.c |
654 |
-index da35592..09dcc9d 100644 |
655 |
---- a/src/videofilters/videoenc.c |
656 |
-+++ b/src/videofilters/videoenc.c |
657 |
-@@ -242,7 +242,7 @@ static void prepare(EncState *s){ |
658 |
- AVCodecContext *c=&s->av_context; |
659 |
- const int max_br_vbv=128000; |
660 |
- |
661 |
-- avcodec_get_context_defaults(c); |
662 |
-+ avcodec_get_context_defaults3(c, NULL); |
663 |
- if (s->codec==CODEC_ID_MJPEG) |
664 |
- { |
665 |
- ms_message("Codec bitrate set to %i",c->bit_rate); |
666 |
-@@ -348,9 +348,9 @@ static void enc_preprocess(MSFilter *f){ |
667 |
- ms_error("could not find encoder for codec id %i",s->codec); |
668 |
- return; |
669 |
- } |
670 |
-- error=avcodec_open(&s->av_context, s->av_codec); |
671 |
-+ error=avcodec_open2(&s->av_context, s->av_codec, NULL); |
672 |
- if (error!=0) { |
673 |
-- ms_error("avcodec_open() failed: %i",error); |
674 |
-+ ms_error("avcodec_open2() failed: %i",error); |
675 |
- return; |
676 |
- } |
677 |
- video_starter_init(&s->starter); |
678 |
|
679 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-tests.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-tests.patch |
680 |
deleted file mode 100644 |
681 |
index 3bcb8bd3661..00000000000 |
682 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-tests.patch |
683 |
+++ /dev/null |
684 |
@@ -1,26 +0,0 @@ |
685 |
-From d9f448013bd5ea92ce42c99ef3338932ec694b62 Mon Sep 17 00:00:00 2001 |
686 |
-From: hasufell <hasufell@g.o> |
687 |
-Date: Wed, 9 Oct 2013 21:18:28 +0200 |
688 |
-Subject: [PATCH] fix tests |
689 |
- |
690 |
---- |
691 |
- configure.ac | 3 +++ |
692 |
- 1 file changed, 3 insertions(+) |
693 |
- |
694 |
-diff --git a/configure.ac b/configure.ac |
695 |
-index 4b923a9..4aec221 100644 |
696 |
---- a/configure.ac |
697 |
-+++ b/configure.ac |
698 |
-@@ -873,6 +873,9 @@ case "$target_os" in |
699 |
- #hack for macport |
700 |
- CUNIT_LIBS+=" -lncurses" |
701 |
- ;; |
702 |
-+ *linux*) |
703 |
-+ CUNIT_LIBS+=" -lncurses" |
704 |
-+ ;; |
705 |
- *mingw*) |
706 |
- CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0501" |
707 |
- LIBS="$LIBS -lws2_32 -liphlpapi" |
708 |
--- |
709 |
-1.8.3.2 |
710 |
- |
711 |
|
712 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-underlinking.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-underlinking.patch |
713 |
deleted file mode 100644 |
714 |
index 19d6af803c2..00000000000 |
715 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-underlinking.patch |
716 |
+++ /dev/null |
717 |
@@ -1,57 +0,0 @@ |
718 |
-From 497ad9c27385c02f4f038b6e787ada9c7b6f8373 Mon Sep 17 00:00:00 2001 |
719 |
-From: hasufell <hasufell@g.o> |
720 |
-Date: Wed, 9 Oct 2013 18:24:28 +0200 |
721 |
-Subject: [PATCH] fix underlinking |
722 |
- |
723 |
---- |
724 |
- configure.ac | 20 ++++++++++++++++++++ |
725 |
- src/Makefile.am | 2 +- |
726 |
- 2 files changed, 21 insertions(+), 1 deletion(-) |
727 |
- |
728 |
-diff --git a/configure.ac b/configure.ac |
729 |
-index 9f402bd..4b923a9 100644 |
730 |
---- a/configure.ac |
731 |
-+++ b/configure.ac |
732 |
-@@ -893,6 +893,26 @@ fi |
733 |
- |
734 |
- AM_CONDITIONAL(BUILD_TESTS,test x$found_cunit = xyes) |
735 |
- |
736 |
-+dnl Check for clock_gettime, in libc for FreeBSD, in rt for linux, |
737 |
-+dnl in rt for Solaris 7, in posix4 for Solaris 2.5.1 |
738 |
-+LIB_CLOCK_GETTIME= |
739 |
-+clk_saved_libs=$LIBS |
740 |
-+AC_SEARCH_LIBS([clock_gettime], [rt posix4], |
741 |
-+ [test "$ac_cv_search_clock_gettime" = "none required" || |
742 |
-+ LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime]) |
743 |
-+AC_SUBST([LIB_CLOCK_GETTIME]) |
744 |
-+ |
745 |
-+AC_MSG_CHECKING([for working clock_gettime]) |
746 |
-+AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], |
747 |
-+ [[clock_gettime(CLOCK_REALTIME, 0);]])], [gnupg_cv_clock_gettime=yes], [gnupg_cv_clock_gettime=no]) |
748 |
-+AC_MSG_RESULT($gnupg_cv_clock_gettime) |
749 |
-+ |
750 |
-+if test x"$gnupg_cv_clock_gettime" = xyes; then |
751 |
-+ AC_DEFINE([HAVE_CLOCK_GETTIME], 1, |
752 |
-+ [Define to 1 if you have the `clock_gettime' function.]) |
753 |
-+fi |
754 |
-+LIBS=$clk_saved_libs |
755 |
-+ |
756 |
- |
757 |
- dnl ################################################## |
758 |
- dnl # Check for doxygen |
759 |
-diff --git a/src/Makefile.am b/src/Makefile.am |
760 |
-index a315e92..a5e144c 100755 |
761 |
---- a/src/Makefile.am |
762 |
-+++ b/src/Makefile.am |
763 |
-@@ -266,7 +266,7 @@ voipdescs.h: Makefile $(libmediastreamer_voip_la_SOURCES) |
764 |
- awk 'BEGIN { print("MSFilterDesc * ms_voip_filter_descs[]={") } { printf("&%s,\n",$$1) } END{ print("NULL\n};\n") } ' $$builddir/voipdescs.txt >> $$builddir/$@ |
765 |
- |
766 |
- |
767 |
--libmediastreamer_base_la_LIBADD= $(ORTP_LIBS) |
768 |
-+libmediastreamer_base_la_LIBADD= $(ORTP_LIBS) @LIB_CLOCK_GETTIME@ |
769 |
- libmediastreamer_base_la_LDFLAGS= -no-undefined -version-info $(LIBMEDIASTREAMER_SO_VERSION) |
770 |
- |
771 |
- if !BUILD_WIN32 |
772 |
--- |
773 |
-1.8.3.2 |
774 |
- |
775 |
|
776 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-v4l-automagic.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-v4l-automagic.patch |
777 |
deleted file mode 100644 |
778 |
index c590aef3b71..00000000000 |
779 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-v4l-automagic.patch |
780 |
+++ /dev/null |
781 |
@@ -1,55 +0,0 @@ |
782 |
-From b99ddff6f322c8b466f3cdfd71b0d629cea33aac Mon Sep 17 00:00:00 2001 |
783 |
-From: hasufell <hasufell@g.o> |
784 |
-Date: Wed, 9 Oct 2013 18:12:46 +0200 |
785 |
-Subject: [PATCH] Support disabling V4L support completely |
786 |
- |
787 |
---- |
788 |
- configure.ac | 18 +++++++++++++++--- |
789 |
- 1 file changed, 15 insertions(+), 3 deletions(-) |
790 |
- |
791 |
-diff --git a/configure.ac b/configure.ac |
792 |
-index 94b6f18..9f402bd 100644 |
793 |
---- a/configure.ac |
794 |
-+++ b/configure.ac |
795 |
-@@ -746,6 +746,16 @@ PACKAGE_DATA_DIR="$prefix/share" |
796 |
- AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${package_prefix}/share" ,[path of data]) |
797 |
- AC_SUBST(PACKAGE_DATA_DIR) |
798 |
- |
799 |
-+AC_ARG_ENABLE(v4l, |
800 |
-+ [ --disable-v4l Disable usage of v4l], |
801 |
-+ [case "${enableval}" in |
802 |
-+ yes) v4l=yes ;; |
803 |
-+ no) v4l=no ;; |
804 |
-+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-v4l) ;; |
805 |
-+ esac],[v4l=yes]) |
806 |
-+ |
807 |
-+if test "$v4l" = "yes" ; then |
808 |
-+ |
809 |
- dnl check for video4linux headers |
810 |
- AC_CHECK_HEADERS(linux/videodev.h linux/videodev2.h) |
811 |
- if test "${ac_cv_header_linux_videodev_h}" = "yes" ; then |
812 |
-@@ -759,9 +769,6 @@ else |
813 |
- found_v4l2=no |
814 |
- fi |
815 |
- |
816 |
--AM_CONDITIONAL(BUILD_V4L1, test x$found_v4l1 = xyes ) |
817 |
--AM_CONDITIONAL(BUILD_V4L2, test x$found_v4l2 = xyes ) |
818 |
-- |
819 |
- AC_ARG_ENABLE(libv4l1, |
820 |
- [AS_HELP_STRING([--disable-libv4l1], [Disable usage of libv4l1, really discouraged])], |
821 |
- [case "${enableval}" in |
822 |
-@@ -805,6 +812,11 @@ this check. |
823 |
- fi |
824 |
- fi |
825 |
- |
826 |
-+fi |
827 |
-+ |
828 |
-+AM_CONDITIONAL(BUILD_V4L1, test x$found_v4l1 = xyes ) |
829 |
-+AM_CONDITIONAL(BUILD_V4L2, test x$found_v4l2 = xyes ) |
830 |
-+ |
831 |
- |
832 |
- AC_PATH_PROG(PCAP,pcap-config,false) |
833 |
- AM_CONDITIONAL(HAVE_PCAP, test $PCAP != false) |
834 |
--- |
835 |
-1.8.3.2 |
836 |
- |
837 |
|
838 |
diff --git a/media-libs/mediastreamer/files/mediastreamer-2.9.0-xxd.patch b/media-libs/mediastreamer/files/mediastreamer-2.9.0-xxd.patch |
839 |
deleted file mode 100644 |
840 |
index 2337e134300..00000000000 |
841 |
--- a/media-libs/mediastreamer/files/mediastreamer-2.9.0-xxd.patch |
842 |
+++ /dev/null |
843 |
@@ -1,18 +0,0 @@ |
844 |
-From: Julian Ospald <hasufell@g.o> |
845 |
-Date: Fri Oct 11 11:37:19 UTC 2013 |
846 |
-Subject: avoid dependency on vim-core |
847 |
- |
848 |
---- mediastreamer-2.9.0/src/Makefile.am |
849 |
-+++ mediastreamer-2.9.0/src/Makefile.am |
850 |
-@@ -385,9 +385,9 @@ |
851 |
- yuv2rgb.fs.h: yuv2rgb.fs |
852 |
- builddir=`pwd` && \ |
853 |
- cd $(top_srcdir)/src && \ |
854 |
-- xxd -i yuv2rgb.fs | sed s/}\;/,0x00}\;/ > $$builddir/yuv2rgb.fs.h |
855 |
-+ xxdi.pl yuv2rgb.fs | sed s/}\;/0x00}\;/ > $$builddir/yuv2rgb.fs.h |
856 |
- |
857 |
- yuv2rgb.vs.h: yuv2rgb.vs |
858 |
- builddir=`pwd` && \ |
859 |
- cd $(top_srcdir)/src && \ |
860 |
-- xxd -i yuv2rgb.vs | sed s/}\;/,0x00}\;/ > $$builddir/yuv2rgb.vs.h |
861 |
-+ xxdi.pl yuv2rgb.vs | sed s/}\;/0x00}\;/ > $$builddir/yuv2rgb.vs.h |
862 |
|
863 |
diff --git a/media-libs/mediastreamer/mediastreamer-2.9.0-r2.ebuild b/media-libs/mediastreamer/mediastreamer-2.9.0-r2.ebuild |
864 |
deleted file mode 100644 |
865 |
index e74122e5af5..00000000000 |
866 |
--- a/media-libs/mediastreamer/mediastreamer-2.9.0-r2.ebuild |
867 |
+++ /dev/null |
868 |
@@ -1,191 +0,0 @@ |
869 |
-# Copyright 1999-2019 Gentoo Authors |
870 |
-# Distributed under the terms of the GNU General Public License v2 |
871 |
- |
872 |
-EAPI=6 |
873 |
- |
874 |
-inherit autotools ltprune |
875 |
- |
876 |
-DESCRIPTION="Mediastreaming library for telephony application" |
877 |
-HOMEPAGE="https://www.linphone.org/" |
878 |
-SRC_URI="mirror://nongnu/linphone/${PN}/${P}.tar.gz" |
879 |
- |
880 |
-LICENSE="GPL-2" |
881 |
-SLOT="0/3" |
882 |
-KEYWORDS="amd64 arm64 ppc ppc64 x86" |
883 |
-# Many cameras will not work or will crash an application if mediastreamer2 is |
884 |
-# not built with v4l2 support (taken from configure.ac) |
885 |
-# TODO: run-time test for ipv6: does it really need ortp[ipv6] ? |
886 |
-IUSE="+alsa amr bindist coreaudio debug doc examples +filters g726 g729 gsm ilbc |
887 |
- ipv6 libav ntp-timestamp opengl opus +ortp oss pcap portaudio pulseaudio sdl |
888 |
- +speex static-libs test theora upnp v4l video x264 X" |
889 |
- |
890 |
-RESTRICT="!test? ( test )" |
891 |
-REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio ) |
892 |
- opengl? ( video ) |
893 |
- theora? ( video ) |
894 |
- v4l? ( video ) |
895 |
- video? ( || ( opengl sdl X ) ) |
896 |
- X? ( video )" |
897 |
- |
898 |
-RDEPEND=" |
899 |
- alsa? ( media-libs/alsa-lib ) |
900 |
- g726? ( >=media-libs/spandsp-0.0.6_pre1 ) |
901 |
- gsm? ( media-sound/gsm ) |
902 |
- opus? ( media-libs/opus ) |
903 |
- ortp? ( >=net-libs/ortp-0.21.0:=[ipv6?] ) |
904 |
- pcap? ( sys-libs/libcap ) |
905 |
- portaudio? ( media-libs/portaudio ) |
906 |
- pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) |
907 |
- speex? ( |
908 |
- >=media-libs/speex-1.2.0 |
909 |
- media-libs/speexdsp |
910 |
- ) |
911 |
- upnp? ( net-libs/libupnp:0 ) |
912 |
- video? ( |
913 |
- libav? ( >=media-video/libav-9.12:0= ) |
914 |
- !libav? ( >=media-video/ffmpeg-1.2.6-r1:0= ) |
915 |
- opengl? ( |
916 |
- media-libs/glew:= |
917 |
- virtual/opengl |
918 |
- x11-libs/libX11 |
919 |
- ) |
920 |
- sdl? ( media-libs/libsdl[video,X] ) |
921 |
- theora? ( media-libs/libtheora ) |
922 |
- v4l? ( |
923 |
- media-libs/libv4l |
924 |
- sys-kernel/linux-headers |
925 |
- ) |
926 |
- X? ( |
927 |
- x11-libs/libX11 |
928 |
- x11-libs/libXv |
929 |
- ) |
930 |
- ) |
931 |
-" |
932 |
-DEPEND="${RDEPEND} |
933 |
- dev-util/intltool |
934 |
- virtual/pkgconfig |
935 |
- doc? ( app-doc/doxygen ) |
936 |
- test? ( >=dev-util/cunit-2.1_p2[ncurses] ) |
937 |
- video? ( dev-util/xxdi ) |
938 |
- X? ( x11-base/xorg-proto ) |
939 |
-" |
940 |
-PDEPEND=" |
941 |
- amr? ( !bindist? ( media-plugins/mediastreamer-amr ) ) |
942 |
- g729? ( !bindist? ( media-plugins/mediastreamer-bcg729 ) ) |
943 |
- ilbc? ( media-plugins/mediastreamer-ilbc ) |
944 |
- video? ( x264? ( media-plugins/mediastreamer-x264 ) ) |
945 |
-" |
946 |
- |
947 |
-PATCHES=( |
948 |
- "${FILESDIR}/${P}-v4l-automagic.patch" |
949 |
- "${FILESDIR}/${P}-libav9.patch" |
950 |
- "${FILESDIR}/${P}-underlinking.patch" |
951 |
- "${FILESDIR}/${P}-tests.patch" |
952 |
- "${FILESDIR}/${P}-xxd.patch" |
953 |
- "${FILESDIR}/${P}-ffmpeg3.patch" |
954 |
- "${FILESDIR}/${P}-ffmpeg4.patch" |
955 |
-) |
956 |
- |
957 |
-src_prepare() { |
958 |
- default |
959 |
- |
960 |
- # variable causes "command not found" warning and is not |
961 |
- # needed anyway |
962 |
- sed -i \ |
963 |
- -e 's/$(ACLOCAL_MACOS_FLAGS)//' \ |
964 |
- Makefile.am || die |
965 |
- |
966 |
- # respect user's CFLAGS |
967 |
- sed -i \ |
968 |
- -e "s:-O2::;s: -g::" \ |
969 |
- configure.ac || die "patching configure.ac failed" |
970 |
- |
971 |
- # change default paths |
972 |
- sed -i \ |
973 |
- -e "s:\(prefix/share\):\1/${PN}:" \ |
974 |
- configure.ac || die "patching configure.ac failed" |
975 |
- |
976 |
- # fix doc installation dir |
977 |
- sed -i \ |
978 |
- -e "s:\$(pkgdocdir):\$(docdir):" \ |
979 |
- help/Makefile.am || die "patching help/Makefile.am failed" |
980 |
- |
981 |
- # fix html installation dir |
982 |
- sed -i \ |
983 |
- -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" \ |
984 |
- help/Makefile.am || die "patching help/Makefile.am failed" |
985 |
- |
986 |
- # linux/videodev.h dropped in 2.6.38 |
987 |
- sed -i \ |
988 |
- -e 's:linux/videodev.h ::' \ |
989 |
- configure.ac || die |
990 |
- |
991 |
- eautoreconf |
992 |
-} |
993 |
- |
994 |
-src_configure() { |
995 |
- local myeconfargs=( |
996 |
- --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html |
997 |
- --datadir="${EPREFIX}"/usr/share/${PN} |
998 |
- # arts is deprecated |
999 |
- --disable-artsc |
1000 |
- # don't want -Werror |
1001 |
- --disable-strict |
1002 |
- --disable-libv4l1 |
1003 |
- # don't use bundled libs |
1004 |
- --enable-external-ortp |
1005 |
- $(use_enable alsa) |
1006 |
- $(use_enable coreaudio macsnd) |
1007 |
- $(use_enable debug) |
1008 |
- $(use_enable filters) |
1009 |
- $(use_enable g726 spandsp) |
1010 |
- $(use_enable gsm) |
1011 |
- $(use_enable ipv6) |
1012 |
- $(use_enable ntp-timestamp) |
1013 |
- $(use_enable opengl glx) |
1014 |
- $(use_enable opus) |
1015 |
- $(use_enable ortp) |
1016 |
- $(use_enable oss) |
1017 |
- $(use_enable pcap) |
1018 |
- $(use_enable portaudio) |
1019 |
- $(use_enable pulseaudio) |
1020 |
- $(use_enable sdl) |
1021 |
- $(use_enable speex) |
1022 |
- $(use_enable static-libs static) |
1023 |
- $(use_enable theora) |
1024 |
- $(use_enable upnp) |
1025 |
- $(use_enable v4l) |
1026 |
- $(use_enable v4l libv4l2) |
1027 |
- $(use_enable video) |
1028 |
- $(use_enable X x11) |
1029 |
- $(use_enable X xv) |
1030 |
- $(use doc || echo ac_cv_path_DOXYGEN=false) |
1031 |
- ) |
1032 |
- |
1033 |
- # Mac OS X Audio Queue is an audio recording facility, available on |
1034 |
- # 10.5 (Leopard, Darwin9) and onward |
1035 |
- if use coreaudio && [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -ge 9 ]] |
1036 |
- then |
1037 |
- myeconfargs+=( --enable-macaqsnd ) |
1038 |
- else |
1039 |
- myeconfargs+=( --disable-macaqsnd ) |
1040 |
- fi |
1041 |
- |
1042 |
- econf "${myeconfargs[@]}" |
1043 |
-} |
1044 |
- |
1045 |
-src_test() { |
1046 |
- default |
1047 |
- cd tester || die |
1048 |
- ./mediastreamer2_tester || die |
1049 |
-} |
1050 |
- |
1051 |
-src_install() { |
1052 |
- default |
1053 |
- prune_libtool_files |
1054 |
- |
1055 |
- if use examples; then |
1056 |
- insinto /usr/share/doc/${PF}/examples |
1057 |
- doins tester/*.c |
1058 |
- fi |
1059 |
-} |
1060 |
|
1061 |
diff --git a/media-libs/mediastreamer/metadata.xml b/media-libs/mediastreamer/metadata.xml |
1062 |
deleted file mode 100644 |
1063 |
index dd4bdefeb44..00000000000 |
1064 |
--- a/media-libs/mediastreamer/metadata.xml |
1065 |
+++ /dev/null |
1066 |
@@ -1,20 +0,0 @@ |
1067 |
-<?xml version="1.0" encoding="UTF-8"?> |
1068 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1069 |
-<pkgmetadata> |
1070 |
- <maintainer type="person"> |
1071 |
- <email>bircoph@g.o</email> |
1072 |
- <name>Andrew Savchenko</name> |
1073 |
- </maintainer> |
1074 |
- <use> |
1075 |
- <flag name="amr">Use of AMR Narrow Band codec plugin</flag> |
1076 |
- <flag name="filters">Enable compilation of filters</flag> |
1077 |
- <flag name="g726">Support g726 codec</flag> |
1078 |
- <flag name="g729">Use g726 codec plugin</flag> |
1079 |
- <flag name="ilbc">Use of iLBC (RFC3951) codec plugin</flag> |
1080 |
- <flag name="ntp-timestamp">Turn on NTP timestamping on received |
1081 |
- packet</flag> |
1082 |
- <flag name="ortp">Enable usage of <pkg>net-libs/ortp</pkg></flag> |
1083 |
- <flag name="pcap">Enable usage of <pkg>net-libs/libpcap</pkg></flag> |
1084 |
- <flag name="video">Enable video support</flag> |
1085 |
- </use> |
1086 |
-</pkgmetadata> |
1087 |
|
1088 |
diff --git a/profiles/package.mask b/profiles/package.mask |
1089 |
index 777851ff678..76cb8a5ecf2 100644 |
1090 |
--- a/profiles/package.mask |
1091 |
+++ b/profiles/package.mask |
1092 |
@@ -697,12 +697,6 @@ dev-python/quixote |
1093 |
dev-go/zglob |
1094 |
dev-go/logrus |
1095 |
|
1096 |
-# Andreas Sturmlechner <asturm@g.o> (2019-11-30) |
1097 |
-# Version in Gentoo is multiple years old, broken by several dependencies |
1098 |
-# Bugs aren't being fixed: #497412, #509334, #511794, #651010, #654484, #701022 |
1099 |
-# Removal in 30 days. |
1100 |
-media-libs/mediastreamer |
1101 |
- |
1102 |
# Bernard Cafarelli <voyageur@g.o> (2019-11-29) |
1103 |
# Beta for new major version with initial Python 3 support |
1104 |
=app-backup/rdiff-backup-1.4.0_beta* |