Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mediastreamer/, media-libs/mediastreamer/files/
Date: Fri, 09 Feb 2018 23:08:57
Message-Id: 1518217715.1513c21b7365ba12d7d334f859f19b36626487c5.asturm@gentoo
1 commit: 1513c21b7365ba12d7d334f859f19b36626487c5
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 9 22:24:40 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 23:08:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1513c21b
7
8 media-libs/mediastreamer: Drop old
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 .../files/mediastreamer-2.7.3-ffmpeg-0.11.patch | 94 ---------
13 .../files/mediastreamer-2.7.3-sdl-build.patch | 220 ---------------------
14 .../files/mediastreamer-2.7.3-v4l-automagic.patch | 40 ----
15 .../files/mediastreamer-2.7.3-videoenc_282.patch | 130 ------------
16 .../mediastreamer/mediastreamer-2.7.3-r3.ebuild | 129 ------------
17 .../mediastreamer/mediastreamer-2.9.0.ebuild | 171 ----------------
18 6 files changed, 784 deletions(-)
19
20 diff --git a/media-libs/mediastreamer/files/mediastreamer-2.7.3-ffmpeg-0.11.patch b/media-libs/mediastreamer/files/mediastreamer-2.7.3-ffmpeg-0.11.patch
21 deleted file mode 100644
22 index c242b5fe139..00000000000
23 --- a/media-libs/mediastreamer/files/mediastreamer-2.7.3-ffmpeg-0.11.patch
24 +++ /dev/null
25 @@ -1,94 +0,0 @@
26 -Fix build with recent ffmpeg releases.
27 -https://bugs.gentoo.org/show_bug.cgi?id=419453
28 -
29 -Index: mediastreamer-2.7.3/src/videoenc.c
30 -===================================================================
31 ---- mediastreamer-2.7.3.orig/src/videoenc.c
32 -+++ mediastreamer-2.7.3/src/videoenc.c
33 -@@ -53,7 +53,6 @@ void ms_ffmpeg_log_callback(void* ptr, i
34 -
35 - void ms_ffmpeg_check_init(){
36 - if(!avcodec_initialized){
37 -- avcodec_init();
38 - avcodec_register_all();
39 - avcodec_initialized=TRUE;
40 - #ifdef ENABLE_LOG_FFMPEG
41 -@@ -107,6 +106,7 @@ typedef struct EncState{
42 - uint32_t framenum;
43 - VideoStarter starter;
44 - bool_t req_vfu;
45 -+ AVDictionary * ff_opts;
46 - }EncState;
47 -
48 - static int enc_set_fps(MSFilter *f, void *arg){
49 -@@ -214,6 +214,7 @@ static void enc_init(MSFilter *f, enum C
50 - s->req_vfu=FALSE;
51 - s->framenum=0;
52 - s->av_context.codec=NULL;
53 -+ s->ff_opts = NULL;
54 - }
55 -
56 - static void enc_h263_init(MSFilter *f){
57 -@@ -300,9 +301,9 @@ static void prepare_h263(EncState *s){
58 - if (s->profile==0){
59 - s->codec=CODEC_ID_H263;
60 - }else{
61 -- c->flags|=CODEC_FLAG_H263P_UMV;
62 -+ av_dict_set(&(s->ff_opts), "umv", "1", 0);
63 - c->flags|=CODEC_FLAG_AC_PRED;
64 -- c->flags|=CODEC_FLAG_H263P_SLICE_STRUCT;
65 -+ av_dict_set(&(s->ff_opts), "structured_slices", "1", 0);
66 - /*
67 - c->flags|=CODEC_FLAG_OBMC;
68 - c->flags|=CODEC_FLAG_AC_PRED;
69 -@@ -342,9 +343,9 @@ static void enc_preprocess(MSFilter *f){
70 - ms_error("could not find encoder for codec id %i",s->codec);
71 - return;
72 - }
73 -- error=avcodec_open(&s->av_context, s->av_codec);
74 -+ error=avcodec_open2(&s->av_context, s->av_codec, &(s->ff_opts));
75 - if (error!=0) {
76 -- ms_error("avcodec_open() failed: %i",error);
77 -+ ms_error("avcodec_open2() failed: %i",error);
78 - return;
79 - }
80 - video_starter_init(&s->starter);
81 -@@ -372,7 +373,7 @@ static void add_rfc2190_header(mblk_t **
82 - // assume video size is CIF or QCIF
83 - if (context->width == 352 && context->height == 288) header->b_wptr[1] = 0x60;
84 - else header->b_wptr[1] = 0x40;
85 -- if (context->coded_frame->pict_type != FF_I_TYPE) header->b_wptr[1] |= 0x10;
86 -+ if (context->coded_frame->pict_type != AV_PICTURE_TYPE_I) header->b_wptr[1] |= 0x10;
87 - header->b_wptr += 4;
88 - header->b_cont = *packet;
89 - *packet = header;
90 -@@ -779,7 +780,7 @@ static void process_frame(MSFilter *f, m
91 - s->req_vfu=TRUE;
92 - }
93 - if (s->req_vfu){
94 -- pict.pict_type=FF_I_TYPE;
95 -+ pict.pict_type=AV_PICTURE_TYPE_I;
96 - s->req_vfu=FALSE;
97 - }
98 - comp_buf->b_rptr=comp_buf->b_wptr=comp_buf->b_datap->db_base;
99 -@@ -799,7 +800,7 @@ static void process_frame(MSFilter *f, m
100 - if (s->framenum==1){
101 - video_starter_first_frame (&s->starter,f->ticker->time);
102 - }
103 -- if (c->coded_frame->pict_type==FF_I_TYPE){
104 -+ if (c->coded_frame->pict_type==AV_PICTURE_TYPE_I){
105 - ms_message("Emitting I-frame");
106 - }
107 - comp_buf->b_wptr+=error;
108 -Index: mediastreamer-2.7.3/src/h264dec.c
109 -===================================================================
110 ---- mediastreamer-2.7.3.orig/src/h264dec.c
111 -+++ mediastreamer-2.7.3/src/h264dec.c
112 -@@ -46,7 +46,6 @@ typedef struct _DecData{
113 - static void ffmpeg_init(){
114 - static bool_t done=FALSE;
115 - if (!done){
116 -- avcodec_init();
117 - avcodec_register_all();
118 - done=TRUE;
119 - }
120
121 diff --git a/media-libs/mediastreamer/files/mediastreamer-2.7.3-sdl-build.patch b/media-libs/mediastreamer/files/mediastreamer-2.7.3-sdl-build.patch
122 deleted file mode 100644
123 index 2f7207e27ab..00000000000
124 --- a/media-libs/mediastreamer/files/mediastreamer-2.7.3-sdl-build.patch
125 +++ /dev/null
126 @@ -1,220 +0,0 @@
127 -commit c0ae6c3f9f78ae9e9e4c7030e7054dc5c0267e2c
128 -Author: Simon Morlat <simon.morlat@××××××××.org>
129 -Date: Mon Apr 11 22:46:37 2011 +0200
130 -
131 - fix SDL output that wasn't compiling anymore and bugfix videodisplay test program
132 -
133 -diff --git a/src/msfilter.c b/src/msfilter.c
134 -index d8d84f3..4b84b8b 100644
135 ---- a/src/msfilter.c
136 -+++ b/src/msfilter.c
137 -@@ -169,9 +169,7 @@ int ms_filter_link(MSFilter *f1, int pin1, MSFilter *f2, int pin2){
138 -
139 - int ms_filter_unlink(MSFilter *f1, int pin1, MSFilter *f2, int pin2){
140 - MSQueue *q;
141 -- ms_return_val_if_fail(f1, -1);
142 -- ms_return_val_if_fail(f2, -1);
143 -- ms_message("ms_filter_unlink: %s:%p,%i-->%s:%p,%i",f1->desc->name,f1,pin1,f2->desc->name,f2,pin2);
144 -+ ms_message("ms_filter_unlink: %s:%p,%i-->%s:%p,%i",f1 ? f1->desc->name : "!NULL!",f1,pin1,f2 ? f2->desc->name : "!NULL!",f2,pin2);
145 - ms_return_val_if_fail(pin1<f1->desc->noutputs, -1);
146 - ms_return_val_if_fail(pin2<f2->desc->ninputs, -1);
147 - ms_return_val_if_fail(f1->outputs[pin1]!=NULL,-1);
148 -diff --git a/src/videoout.c b/src/videoout.c
149 -index ca36b0f..5bdc6dd 100644
150 ---- a/src/videoout.c
151 -+++ b/src/videoout.c
152 -@@ -114,8 +114,6 @@ void ms_display_destroy(MSDisplay *d);
153 - }
154 - #endif
155 -
156 --#include "ffmpeg-priv.h"
157 --
158 - #define SCALE_FACTOR 4.0f
159 - #define SELVIEW_POS_INACTIVE -100.0
160 -
161 -@@ -462,7 +460,7 @@ void ms_display_desc_set_default_window_id(MSDisplayDesc *desc, long id){
162 -
163 - typedef struct VideoOut
164 - {
165 -- AVRational ratio;
166 -+ struct Rational {int num; int den;} ratio;
167 - MSPicture fbuf;
168 - MSPicture fbuf_selfview;
169 - MSPicture local_pic;
170 -@@ -474,8 +472,8 @@ typedef struct VideoOut
171 - float sv_posx,sv_posy;
172 - int background_color[3];
173 -
174 -- struct ms_SwsContext *sws1;
175 -- struct ms_SwsContext *sws2;
176 -+ MSScalerContext *sws1;
177 -+ MSScalerContext *sws2;
178 - MSDisplay *display;
179 - bool_t own_display;
180 - bool_t ready;
181 -@@ -552,11 +550,11 @@ static void video_out_uninit(MSFilter *f){
182 - if (obj->display!=NULL && obj->own_display)
183 - ms_display_destroy(obj->display);
184 - if (obj->sws1!=NULL){
185 -- ms_sws_freeContext(obj->sws1);
186 -+ ms_scaler_context_free(obj->sws1);
187 - obj->sws1=NULL;
188 - }
189 - if (obj->sws2!=NULL){
190 -- ms_sws_freeContext(obj->sws2);
191 -+ ms_scaler_context_free(obj->sws2);
192 - obj->sws2=NULL;
193 - }
194 - if (obj->local_msg!=NULL) {
195 -@@ -581,11 +579,11 @@ static void video_out_prepare(MSFilter *f){
196 - obj->display=NULL;
197 - }
198 - if (obj->sws1!=NULL){
199 -- ms_sws_freeContext(obj->sws1);
200 -+ ms_scaler_context_free(obj->sws1);
201 - obj->sws1=NULL;
202 - }
203 - if (obj->sws2!=NULL){
204 -- ms_sws_freeContext(obj->sws2);
205 -+ ms_scaler_context_free(obj->sws2);
206 - obj->sws2=NULL;
207 - }
208 - if (obj->local_msg!=NULL) {
209 -@@ -665,13 +663,12 @@ static void video_out_process(MSFilter *f){
210 - if (ms_yuv_buf_init_from_mblk(&src,inm)==0){
211 -
212 - if (obj->sws2==NULL){
213 -- obj->sws2=ms_sws_getContext(src.w,src.h,PIX_FMT_YUV420P,
214 -- obj->fbuf_selfview.w,obj->fbuf_selfview.h,PIX_FMT_YUV420P,
215 -- SWS_FAST_BILINEAR, NULL, NULL, NULL);
216 -+ obj->sws2=ms_scaler_create_context(src.w,src.h,MS_YUV420P,
217 -+ obj->fbuf_selfview.w,obj->fbuf_selfview.h,MS_YUV420P,
218 -+ MS_SCALER_METHOD_BILINEAR);
219 - }
220 - ms_display_lock(obj->display);
221 -- if (ms_sws_scale(obj->sws2,src.planes,src.strides, 0,
222 -- src.h, obj->fbuf_selfview.planes, obj->fbuf_selfview.strides)<0){
223 -+ if (ms_scaler_process(obj->sws2,src.planes,src.strides,obj->fbuf_selfview.planes, obj->fbuf_selfview.strides)<0){
224 - ms_error("Error in ms_sws_scale().");
225 - }
226 - if (!mblk_get_precious_flag(inm)) ms_yuv_buf_mirror(&obj->fbuf_selfview);
227 -@@ -683,9 +680,9 @@ static void video_out_process(MSFilter *f){
228 - if (ms_yuv_buf_init_from_mblk(&src,inm)==0){
229 -
230 - if (obj->sws2==NULL){
231 -- obj->sws2=ms_sws_getContext(src.w,src.h,PIX_FMT_YUV420P,
232 -- obj->local_pic.w,obj->local_pic.h,PIX_FMT_YUV420P,
233 -- SWS_FAST_BILINEAR, NULL, NULL, NULL);
234 -+ obj->sws2=ms_scaler_create_context(src.w,src.h,MS_YUV420P,
235 -+ obj->local_pic.w,obj->local_pic.h,MS_YUV420P,
236 -+ MS_SCALER_METHOD_BILINEAR);
237 - }
238 - if (obj->local_msg==NULL){
239 - obj->local_msg=ms_yuv_buf_alloc(&obj->local_pic,
240 -@@ -693,8 +690,7 @@ static void video_out_process(MSFilter *f){
241 - }
242 - if (obj->local_pic.planes[0]!=NULL)
243 - {
244 -- if (ms_sws_scale(obj->sws2,src.planes,src.strides, 0,
245 -- src.h, obj->local_pic.planes, obj->local_pic.strides)<0){
246 -+ if (ms_scaler_process(obj->sws2,src.planes,src.strides,obj->local_pic.planes, obj->local_pic.strides)<0){
247 - ms_error("Error in ms_sws_scale().");
248 - }
249 - if (!mblk_get_precious_flag(inm)) ms_yuv_buf_mirror(&obj->local_pic);
250 -@@ -731,13 +727,12 @@ static void video_out_process(MSFilter *f){
251 - }
252 - }
253 - if (obj->sws1==NULL){
254 -- obj->sws1=ms_sws_getContext(src.w,src.h,PIX_FMT_YUV420P,
255 -- obj->fbuf.w,obj->fbuf.h,PIX_FMT_YUV420P,
256 -- SWS_FAST_BILINEAR, NULL, NULL, NULL);
257 -+ obj->sws1=ms_scaler_create_context(src.w,src.h,MS_YUV420P,
258 -+ obj->fbuf.w,obj->fbuf.h,MS_YUV420P,
259 -+ MS_SCALER_METHOD_BILINEAR);
260 - }
261 - ms_display_lock(obj->display);
262 -- if (ms_sws_scale(obj->sws1,src.planes,src.strides, 0,
263 -- src.h, obj->fbuf.planes, obj->fbuf.strides)<0){
264 -+ if (ms_scaler_process(obj->sws1,src.planes,src.strides,obj->fbuf.planes, obj->fbuf.strides)<0){
265 - ms_error("Error in ms_sws_scale().");
266 - }
267 - if (obj->mirror && !mblk_get_precious_flag(inm)) ms_yuv_buf_mirror(&obj->fbuf);
268 -@@ -943,3 +938,4 @@ MSFilterDesc ms_video_out_desc={
269 -
270 -
271 - MS_FILTER_DESC_EXPORT(ms_video_out_desc)
272 -+
273 -diff --git a/tests/videodisplay.c b/tests/videodisplay.c
274 -index 76f67a5..0828c6a 100644
275 ---- a/tests/videodisplay.c
276 -+++ b/tests/videodisplay.c
277 -@@ -52,6 +52,7 @@ int main(int argc, char *argv[]){
278 - for(i=0;i<1;++i){
279 - int n;
280 - vs=video_preview_new();
281 -+ /*video_preview_set_display_filter_name(vs,"MSVideoOut");*/
282 - video_preview_set_size(vs,vsize);
283 - video_preview_start(vs, cam);
284 -
285 -@@ -79,11 +80,11 @@ int main(int argc, char *argv[]){
286 -
287 - vs->tee = ms_filter_new(MS_TEE_ID);
288 -
289 -- ms_filter_unlink(vs->pixconv,0, vs->output,0);
290 -+ ms_filter_unlink(vs->pixconv,0, vs->output2,0);
291 -
292 - ms_filter_link(vs->pixconv,0,vs->tee,0);
293 -- ms_filter_link(vs->tee,0,vs->output,0);
294 -- ms_filter_link(vs->tee,1,vs->output,1);
295 -+ ms_filter_link(vs->tee,0,vs->output2,0);
296 -+ ms_filter_link(vs->tee,1,vs->output2,1);
297 -
298 - //ms_filter_unlink(vs->tee,0,vs->output,0);
299 - ms_ticker_attach (vs->ticker, vs->source);
300 -@@ -92,34 +93,34 @@ int main(int argc, char *argv[]){
301 - if (n==500)
302 - {
303 - int corner=1;
304 -- ms_filter_call_method(vs->output,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
305 -+ ms_filter_call_method(vs->output2,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
306 - }
307 - if (n==600)
308 - {
309 - int corner=2;
310 -- ms_filter_call_method(vs->output,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
311 -+ ms_filter_call_method(vs->output2,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
312 - }
313 - if (n==700)
314 - {
315 - int corner=3;
316 -- ms_filter_call_method(vs->output,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
317 -+ ms_filter_call_method(vs->output2,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
318 - }
319 - if (n==800)
320 - {
321 - int corner=-1;
322 -- ms_filter_call_method(vs->output,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
323 -+ ms_filter_call_method(vs->output2,MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE,&corner);
324 - }
325 - if (n==900)
326 - {
327 - ms_ticker_detach (vs->ticker, vs->source);
328 -
329 - ms_filter_unlink(vs->pixconv,0,vs->tee,0);
330 -- ms_filter_unlink(vs->tee,0,vs->output,0);
331 -- ms_filter_unlink(vs->tee,1,vs->output,1);
332 -+ ms_filter_unlink(vs->tee,0,vs->output2,0);
333 -+ ms_filter_unlink(vs->tee,1,vs->output2,1);
334 - ms_filter_destroy(vs->tee);
335 - vs->tee=NULL;
336 -
337 -- ms_filter_link(vs->pixconv,0, vs->output,0);
338 -+ ms_filter_link(vs->pixconv,0, vs->output2,0);
339 -
340 -
341 - ms_ticker_attach (vs->ticker, vs->source);
342 -@@ -129,3 +130,4 @@ int main(int argc, char *argv[]){
343 - }
344 - return 0;
345 - }
346 -+
347
348 diff --git a/media-libs/mediastreamer/files/mediastreamer-2.7.3-v4l-automagic.patch b/media-libs/mediastreamer/files/mediastreamer-2.7.3-v4l-automagic.patch
349 deleted file mode 100644
350 index d103a07fd9a..00000000000
351 --- a/media-libs/mediastreamer/files/mediastreamer-2.7.3-v4l-automagic.patch
352 +++ /dev/null
353 @@ -1,40 +0,0 @@
354 -=== modified file 'configure.ac'
355 ---- configure.ac 2011-04-09 08:17:33 +0000
356 -+++ configure.ac 2011-04-09 08:31:18 +0000
357 -@@ -590,6 +590,15 @@
358 - AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${package_prefix}/share" ,[path of data])
359 - AC_SUBST(PACKAGE_DATA_DIR)
360 -
361 -+AC_ARG_ENABLE(v4l,
362 -+ [ --disable-v4l Disable usage of v4l],
363 -+ [case "${enableval}" in
364 -+ yes) v4l=yes ;;
365 -+ no) v4l=no ;;
366 -+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-v4l) ;;
367 -+ esac],[v4l=yes])
368 -+
369 -+if test "$v4l" = "yes" ; then
370 - dnl check for video4linux headers
371 - AC_CHECK_HEADERS(linux/videodev.h linux/videodev2.h)
372 - if test "${ac_cv_header_linux_videodev_h}" = "yes" || \
373 -@@ -599,8 +608,6 @@
374 - found_v4l=no
375 - fi
376 -
377 --AM_CONDITIONAL(BUILD_V4L, test x$found_v4l = xyes )
378 --
379 - AC_ARG_ENABLE(libv4l,
380 - [ --disable-libv4l Disable usage of libv4l, really discouraged],
381 - [case "${enableval}" in
382 -@@ -632,6 +639,10 @@
383 - ])
384 - fi
385 - fi
386 -+fi
387 -+
388 -+AM_CONDITIONAL(BUILD_V4L, test x$found_v4l = xyes )
389 -+
390 -
391 - dnl ##################################################
392 - dnl # Check for doxygen
393 -
394
395 diff --git a/media-libs/mediastreamer/files/mediastreamer-2.7.3-videoenc_282.patch b/media-libs/mediastreamer/files/mediastreamer-2.7.3-videoenc_282.patch
396 deleted file mode 100644
397 index 66d055ede08..00000000000
398 --- a/media-libs/mediastreamer/files/mediastreamer-2.7.3-videoenc_282.patch
399 +++ /dev/null
400 @@ -1,130 +0,0 @@
401 -Update videoenc.c to the 2.8.2 version. Fixes some but not all problems with
402 -ffmpeg.
403 -
404 -
405 ---- mediastreamer-2.7.3/src/videoenc.c 2010-12-17 05:59:50.000000000 -0300
406 -+++ mediastreamer-2.8.2/src/videoenc.c 2012-02-17 06:16:20.000000000 -0300
407 -@@ -164,6 +164,7 @@
408 - }else{
409 - ms_warning("unsupported video size %s",tmp);
410 - ret=FALSE;
411 -+ goto end;
412 - }
413 - divider=atoi(equal+1);
414 - if (divider!=0){
415 -@@ -174,6 +175,8 @@
416 - ret=FALSE;
417 - }
418 - }else ret=FALSE;
419 -+
420 -+end:
421 - ms_free(tmp);
422 - return ret;
423 - }
424 -@@ -231,11 +234,7 @@
425 -
426 - static void prepare(EncState *s){
427 - AVCodecContext *c=&s->av_context;
428 --#ifdef ANDROID
429 - const int max_br_vbv=128000;
430 --#else
431 -- const int max_br_vbv=256000;
432 --#endif
433 -
434 - avcodec_get_context_defaults(c);
435 - if (s->codec==CODEC_ID_MJPEG)
436 -@@ -315,13 +314,6 @@
437 - static void prepare_mpeg4(EncState *s){
438 - AVCodecContext *c=&s->av_context;
439 - c->max_b_frames=0; /*don't use b frames*/
440 -- c->flags|=CODEC_FLAG_AC_PRED;
441 -- c->flags|=CODEC_FLAG_H263P_UMV;
442 -- /*c->flags|=CODEC_FLAG_QPEL;*/ /*don't enable this one: this forces profile_level to advanced simple profile */
443 -- c->flags|=CODEC_FLAG_4MV;
444 -- c->flags|=CODEC_FLAG_GMC;
445 -- c->flags|=CODEC_FLAG_LOOP_FILTER;
446 -- c->flags|=CODEC_FLAG_H263P_SLICE_STRUCT;
447 - }
448 -
449 - static void enc_uninit(MSFilter *f){
450 -@@ -681,7 +673,7 @@
451 - uint8_t *pbuf_ptr=full_frame->b_rptr;
452 - uint8_t *buf_end=full_frame->b_wptr;
453 -
454 -- ms_message("image size: %i)", buf_end-pbuf_ptr);
455 -+ ms_message("image size: %li)", (long)(buf_end-pbuf_ptr));
456 -
457 - *lqt=NULL;
458 - *cqt=NULL;
459 -@@ -689,7 +681,7 @@
460 - err = find_marker(&pbuf_ptr, buf_end);
461 - while (err!=-1)
462 - {
463 -- ms_message("marker found: %x (offset from beginning%i)", err, pbuf_ptr-full_frame->b_rptr);
464 -+ ms_message("marker found: %x (offset from beginning %li)", err, (long)(pbuf_ptr-full_frame->b_rptr));
465 - if (err==0xdb)
466 - {
467 - /* copy DQT table */
468 -@@ -772,10 +764,12 @@
469 - int error;
470 - mblk_t *comp_buf=s->comp_buf;
471 - int comp_buf_sz=comp_buf->b_datap->db_lim-comp_buf->b_datap->db_base;
472 -+ YuvBuf yuv;
473 -
474 -+ ms_yuv_buf_init_from_mblk(&yuv, inm);
475 - /* convert image if necessary */
476 - avcodec_get_frame_defaults(&pict);
477 -- avpicture_fill((AVPicture*)&pict,(uint8_t*)inm->b_rptr,c->pix_fmt,c->width,c->height);
478 -+ avpicture_fill((AVPicture*)&pict,yuv.planes[0],c->pix_fmt,c->width,c->height);
479 -
480 - /* timestamp used by ffmpeg, unset here */
481 - pict.pts=AV_NOPTS_VALUE;
482 -@@ -796,7 +790,9 @@
483 - comp_buf->b_wptr+=4;
484 - comp_buf_sz-=4;
485 - }
486 -+
487 - error=avcodec_encode_video(c, (uint8_t*)comp_buf->b_wptr,comp_buf_sz, &pict);
488 -+
489 - if (error<=0) ms_warning("ms_AVencoder_process: error %i.",error);
490 - else{
491 - s->framenum++;
492 -@@ -837,6 +833,14 @@
493 - EncState *s=(EncState*)f->data;
494 - bool_t snow=s->codec==CODEC_ID_SNOW;
495 - s->maxbr=*(int*)arg;
496 -+ if (s->av_context.codec!=NULL){
497 -+ /*when we are processing, apply new settings immediately*/
498 -+ ms_filter_lock(f);
499 -+ enc_postprocess(f);
500 -+ enc_preprocess(f);
501 -+ ms_filter_unlock(f);
502 -+ return 0;
503 -+ }
504 - if (s->maxbr>=1024000 && s->codec!=CODEC_ID_H263P){
505 - s->vsize.width = MS_VIDEO_SIZE_SVGA_W;
506 - s->vsize.height = MS_VIDEO_SIZE_SVGA_H;
507 -@@ -854,7 +858,7 @@
508 - s->vsize.height=MS_VIDEO_SIZE_CIF_H;
509 - s->fps=17;
510 - s->qmin=3;
511 -- }else if (s->maxbr>=170000){
512 -+ }else if (s->maxbr>=170000 && s->codec!=CODEC_ID_H263P && s->codec!=CODEC_ID_H263){
513 - s->vsize.width=MS_VIDEO_SIZE_QVGA_W;
514 - s->vsize.height=MS_VIDEO_SIZE_QVGA_H;
515 - s->fps=15;
516 -@@ -875,14 +879,6 @@
517 - s->fps=5;
518 - s->qmin=5;
519 - }
520 --
521 -- if (s->av_context.codec!=NULL){
522 -- /*apply new settings dynamically*/
523 -- ms_filter_lock(f);
524 -- enc_postprocess(f);
525 -- enc_preprocess(f);
526 -- ms_filter_unlock(f);
527 -- }
528 - return 0;
529 - }
530 -
531
532 diff --git a/media-libs/mediastreamer/mediastreamer-2.7.3-r3.ebuild b/media-libs/mediastreamer/mediastreamer-2.7.3-r3.ebuild
533 deleted file mode 100644
534 index 24f960f9880..00000000000
535 --- a/media-libs/mediastreamer/mediastreamer-2.7.3-r3.ebuild
536 +++ /dev/null
537 @@ -1,129 +0,0 @@
538 -# Copyright 1999-2013 Gentoo Foundation
539 -# Distributed under the terms of the GNU General Public License v2
540 -
541 -EAPI="4"
542 -
543 -inherit eutils autotools multilib
544 -
545 -DESCRIPTION="Mediastreaming library for telephony application"
546 -HOMEPAGE="http://www.linphone.org/"
547 -SRC_URI="mirror://nongnu/linphone/${PN}/${P}.tar.gz"
548 -
549 -LICENSE="GPL-2"
550 -SLOT="0"
551 -KEYWORDS="amd64 ppc ppc64 x86 ~x64-macos ~x86-macos"
552 -# Many cameras will not work or will crash an application if mediastreamer2 is
553 -# not built with v4l2 support (taken from configure.ac)
554 -# TODO: run-time test for ipv6: does it really need ortp[ipv6] ?
555 -IUSE="+alsa amr bindist coreaudio debug examples gsm ilbc ipv6 jack oss portaudio
556 -pulseaudio sdl +speex static-libs theora v4l video x264 X"
557 -REQUIRED_USE="|| ( oss alsa jack portaudio coreaudio pulseaudio )
558 - video? ( || ( sdl X ) )
559 - theora? ( video )
560 - X? ( video )
561 - v4l? ( video )"
562 -
563 -RDEPEND=">=net-libs/ortp-0.16.2[ipv6?]
564 - alsa? ( media-libs/alsa-lib )
565 - gsm? ( media-sound/gsm )
566 - jack? ( >=media-libs/libsamplerate-0.0.13
567 - media-sound/jack-audio-connection-kit )
568 - portaudio? ( media-libs/portaudio )
569 - pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
570 - speex? ( >=media-libs/speex-1.2_beta3 )
571 - video? (
572 - virtual/ffmpeg
573 - v4l? ( media-libs/libv4l
574 - sys-kernel/linux-headers )
575 - theora? ( media-libs/libtheora )
576 - sdl? ( media-libs/libsdl[video,X] )
577 - X? ( x11-libs/libX11
578 - x11-libs/libXv ) )"
579 -DEPEND="${RDEPEND}
580 - virtual/pkgconfig
581 - x11-proto/videoproto"
582 -
583 -PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) )
584 - ilbc? ( media-plugins/mediastreamer-ilbc )
585 - video? ( x264? ( media-plugins/mediastreamer-x264 ) )"
586 -
587 -DOCS=( AUTHORS ChangeLog NEWS README )
588 -
589 -src_prepare() {
590 - # respect user's CFLAGS
591 - sed -i -e "s:-O2::;s: -g::" configure.ac || die "patching configure.ac failed"
592 -
593 - # change default paths
594 - sed -i -e "s:\(\${prefix}/\)lib:\1$(get_libdir):" \
595 - -e "s:\(prefix/share\):\1/${PN}:" configure.ac \
596 - || die "patching configure.ac failed"
597 -
598 - # fix html doc installation dir
599 - sed -i -e "s:\$(pkgdocdir):\$(docdir):" help/Makefile.am \
600 - || die "patching help/Makefile.am failed"
601 - sed -i -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" help/Makefile.am \
602 - || die "patching help/Makefile.am failed"
603 -
604 - epatch "${FILESDIR}/${PN}-2.7.3-v4l-automagic.patch"
605 - epatch "${FILESDIR}/${P}-sdl-build.patch"
606 - epatch "${FILESDIR}/${P}-videoenc_282.patch"
607 - epatch "${FILESDIR}/${P}-ffmpeg-0.11.patch"
608 -
609 - # linux/videodev.h dropped in 2.6.38
610 - sed -i -e 's:msv4l.c::' src/Makefile.am || die
611 - sed -i -e 's:linux/videodev.h ::' configure.ac || die
612 - eautoreconf
613 -
614 - # don't build examples in tests/
615 - sed -i -e "s:\(SUBDIRS = .*\) tests \(.*\):\1 \2:" Makefile.in \
616 - || die "patching Makefile.in failed"
617 -}
618 -
619 -src_configure() {
620 - # Mac OS X Audio Queue is an audio recording facility, available on
621 - # 10.5 (Leopard, Darwin9) and onward
622 - local macaqsnd="--disable-macaqsnd"
623 - if use coreaudio && [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -ge 9 ]];
624 - then
625 - macaqsnd="--enable-macaqsnd"
626 - fi
627 -
628 - # strict: don't want -Werror
629 - # external-ortp: don't use bundled libs
630 - # arts: arts is deprecated
631 - econf \
632 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
633 - --datadir="${EPREFIX}"/usr/share/${PN} \
634 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
635 - --disable-strict \
636 - --enable-external-ortp \
637 - --disable-artsc \
638 - $(use_enable alsa) \
639 - $(use_enable pulseaudio) \
640 - $(use_enable coreaudio macsnd) ${macaqsnd} \
641 - $(use_enable debug) \
642 - $(use_enable gsm) \
643 - $(use_enable ipv6) \
644 - $(use_enable jack) \
645 - $(use_enable oss) \
646 - $(use_enable portaudio) \
647 - $(use_enable speex) \
648 - $(use_enable static-libs static) \
649 - $(use_enable theora) \
650 - $(use_enable video) \
651 - $(use_enable v4l) \
652 - $(use_enable v4l libv4l) \
653 - $(use_enable sdl) \
654 - $(use_enable X x11) \
655 - $(use_enable X xv)
656 -}
657 -
658 -src_install() {
659 - default
660 - find "${ED}" -name '*.la' -exec rm -f {} +
661 -
662 - if use examples; then
663 - insinto /usr/share/doc/${PF}/examples
664 - doins tests/*.c
665 - fi
666 -}
667
668 diff --git a/media-libs/mediastreamer/mediastreamer-2.9.0.ebuild b/media-libs/mediastreamer/mediastreamer-2.9.0.ebuild
669 deleted file mode 100644
670 index 68ed29238df..00000000000
671 --- a/media-libs/mediastreamer/mediastreamer-2.9.0.ebuild
672 +++ /dev/null
673 @@ -1,171 +0,0 @@
674 -# Copyright 1999-2015 Gentoo Foundation
675 -# Distributed under the terms of the GNU General Public License v2
676 -
677 -EAPI=5
678 -
679 -inherit autotools eutils
680 -
681 -DESCRIPTION="Mediastreaming library for telephony application"
682 -HOMEPAGE="http://www.linphone.org/"
683 -SRC_URI="mirror://nongnu/linphone/${PN}/${P}.tar.gz"
684 -
685 -LICENSE="GPL-2"
686 -SLOT="0/3"
687 -KEYWORDS="amd64 ppc ppc64 x86"
688 -# Many cameras will not work or will crash an application if mediastreamer2 is
689 -# not built with v4l2 support (taken from configure.ac)
690 -# TODO: run-time test for ipv6: does it really need ortp[ipv6] ?
691 -IUSE="+alsa amr bindist coreaudio debug doc examples +filters g726 g729 gsm ilbc
692 - ipv6 ntp-timestamp opengl opus +ortp oss pcap portaudio pulseaudio sdl silk +speex
693 - static-libs test theora upnp v4l video x264 X"
694 -
695 -REQUIRED_USE="|| ( oss alsa portaudio coreaudio pulseaudio )
696 - video? ( || ( opengl sdl X ) )
697 - theora? ( video )
698 - X? ( video )
699 - v4l? ( video )
700 - opengl? ( video )"
701 -
702 -RDEPEND="alsa? ( media-libs/alsa-lib )
703 - g726? ( >=media-libs/spandsp-0.0.6_pre1 )
704 - gsm? ( media-sound/gsm )
705 - opus? ( media-libs/opus )
706 - ortp? ( >=net-libs/ortp-0.21.0[ipv6?] )
707 - pcap? ( sys-libs/libcap )
708 - portaudio? ( media-libs/portaudio )
709 - pulseaudio? ( >=media-sound/pulseaudio-0.9.21 )
710 - speex? ( >=media-libs/speex-1.2_beta3 )
711 - upnp? ( net-libs/libupnp )
712 - video? (
713 - virtual/ffmpeg
714 - opengl? ( media-libs/glew
715 - virtual/opengl
716 - x11-libs/libX11 )
717 - v4l? ( media-libs/libv4l
718 - sys-kernel/linux-headers )
719 - theora? ( media-libs/libtheora )
720 - sdl? ( media-libs/libsdl[video,X] )
721 - X? ( x11-libs/libX11
722 - x11-libs/libXv ) )"
723 -DEPEND="${RDEPEND}
724 - dev-util/intltool
725 - virtual/pkgconfig
726 - doc? ( app-doc/doxygen )
727 - opengl? ( dev-util/xxdi )
728 - test? ( >=dev-util/cunit-2.1_p2[ncurses] )
729 - X? ( x11-proto/videoproto )"
730 -
731 -PDEPEND="amr? ( !bindist? ( media-plugins/mediastreamer-amr ) )
732 - g729? ( !bindist? ( media-plugins/mediastreamer-bcg729 ) )
733 - ilbc? ( media-plugins/mediastreamer-ilbc )
734 - video? ( x264? ( media-plugins/mediastreamer-x264 ) )
735 - silk? ( !bindist? ( media-plugins/mediastreamer-silk ) )"
736 -
737 -src_prepare() {
738 - # variable causes "command not found" warning and is not
739 - # needed anyway
740 - sed -i \
741 - -e 's/$(ACLOCAL_MACOS_FLAGS)//' \
742 - Makefile.am || die
743 -
744 - # respect user's CFLAGS
745 - sed -i \
746 - -e "s:-O2::;s: -g::" \
747 - configure.ac || die "patching configure.ac failed"
748 -
749 - # change default paths
750 - sed -i \
751 - -e "s:\(prefix/share\):\1/${PN}:" \
752 - configure.ac || die "patching configure.ac failed"
753 -
754 - # fix doc installation dir
755 - sed -i \
756 - -e "s:\$(pkgdocdir):\$(docdir):" \
757 - help/Makefile.am || die "patching help/Makefile.am failed"
758 -
759 - # fix html installation dir
760 - sed -i \
761 - -e "s:\(doc_htmldir=\).*:\1\$(htmldir):" \
762 - help/Makefile.am || die "patching help/Makefile.am failed"
763 -
764 - # linux/videodev.h dropped in 2.6.38
765 - sed -i \
766 - -e 's:linux/videodev.h ::' \
767 - configure.ac || die
768 -
769 - epatch "${FILESDIR}/${P}-v4l-automagic.patch" \
770 - "${FILESDIR}/${P}-libav9.patch" \
771 - "${FILESDIR}/${P}-underlinking.patch" \
772 - "${FILESDIR}/${P}-tests.patch" \
773 - "${FILESDIR}/${P}-xxd.patch"
774 -
775 - eautoreconf
776 -}
777 -
778 -src_configure() {
779 - local myeconfargs=(
780 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
781 - --datadir="${EPREFIX}"/usr/share/${PN}
782 - # arts is deprecated
783 - --disable-artsc
784 - # don't want -Werror
785 - --disable-strict
786 - --disable-libv4l1
787 - # don't use bundled libs
788 - --enable-external-ortp
789 - $(use_enable alsa)
790 - $(use_enable pulseaudio)
791 - $(use_enable coreaudio macsnd)
792 - $(use_enable debug)
793 - $(use_enable filters)
794 - $(use_enable g726 spandsp)
795 - $(use_enable gsm)
796 - $(use_enable ipv6)
797 - $(use_enable ntp-timestamp)
798 - $(use_enable opengl glx)
799 - $(use_enable opus)
800 - $(use_enable ortp)
801 - $(use_enable oss)
802 - $(use_enable pcap)
803 - $(use_enable portaudio)
804 - $(use_enable speex)
805 - $(use_enable static-libs static)
806 - $(use_enable theora)
807 - $(use_enable upnp)
808 - $(use_enable video)
809 - $(use_enable v4l)
810 - $(use_enable v4l libv4l2)
811 - $(use_enable sdl)
812 - $(use_enable X x11)
813 - $(use_enable X xv)
814 -
815 - $(use doc || echo ac_cv_path_DOXYGEN=false)
816 - )
817 -
818 - # Mac OS X Audio Queue is an audio recording facility, available on
819 - # 10.5 (Leopard, Darwin9) and onward
820 - if use coreaudio && [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -ge 9 ]]
821 - then
822 - myeconfargs+=( --enable-macaqsnd )
823 - else
824 - myeconfargs+=( --disable-macaqsnd )
825 - fi
826 -
827 - econf "${myeconfargs[@]}"
828 -}
829 -
830 -src_test() {
831 - default
832 - cd tester || die
833 - ./mediastreamer2_tester || die
834 -}
835 -
836 -src_install() {
837 - default
838 - prune_libtool_files
839 -
840 - if use examples; then
841 - insinto /usr/share/doc/${PF}/examples
842 - doins tester/*.c
843 - fi
844 -}