Browse code

lavfi: remove remaining forgotten min/rej perms.

Clément Bœsch authored on 2013/03/10 10:32:35
Showing 14 changed files
... ...
@@ -139,7 +139,6 @@ static const AVFilterPad apad_inputs[] = {
139 139
         .name         = "default",
140 140
         .type         = AVMEDIA_TYPE_AUDIO,
141 141
         .filter_frame = filter_frame,
142
-        .min_perms    = AV_PERM_READ,
143 142
     },
144 143
     { NULL },
145 144
 };
... ...
@@ -388,9 +388,9 @@ static const AVFilterPad avfilter_af_channelmap_inputs[] = {
388 388
     {
389 389
         .name           = "default",
390 390
         .type           = AVMEDIA_TYPE_AUDIO,
391
-        .min_perms      = AV_PERM_READ | AV_PERM_WRITE,
392 391
         .filter_frame   = channelmap_filter_frame,
393
-        .config_props   = channelmap_config_input
392
+        .config_props   = channelmap_config_input,
393
+        .needs_writable = 1,
394 394
     },
395 395
     { NULL }
396 396
 };
... ...
@@ -480,7 +480,6 @@ static const AVFilterPad avfilter_vf_select_inputs[] = {
480 480
         .name             = "default",
481 481
         .type             = AVMEDIA_TYPE_VIDEO,
482 482
         .get_video_buffer = ff_null_get_video_buffer,
483
-        .min_perms        = AV_PERM_PRESERVE,
484 483
         .config_props     = config_input,
485 484
         .filter_frame     = filter_frame,
486 485
     },
... ...
@@ -331,7 +331,6 @@ static const AVFilterPad ffbuffersink_inputs[] = {
331 331
         .name      = "default",
332 332
         .type      = AVMEDIA_TYPE_VIDEO,
333 333
         .filter_frame = filter_frame,
334
-        .min_perms = AV_PERM_READ | AV_PERM_PRESERVE,
335 334
     },
336 335
     { NULL },
337 336
 };
... ...
@@ -353,7 +352,6 @@ static const AVFilterPad buffersink_inputs[] = {
353 353
         .name      = "default",
354 354
         .type      = AVMEDIA_TYPE_VIDEO,
355 355
         .filter_frame = filter_frame,
356
-        .min_perms = AV_PERM_READ | AV_PERM_PRESERVE,
357 356
     },
358 357
     { NULL },
359 358
 };
... ...
@@ -467,7 +465,6 @@ static const AVFilterPad ffabuffersink_inputs[] = {
467 467
         .name           = "default",
468 468
         .type           = AVMEDIA_TYPE_AUDIO,
469 469
         .filter_frame   = filter_frame,
470
-        .min_perms      = AV_PERM_READ | AV_PERM_PRESERVE,
471 470
     },
472 471
     { NULL },
473 472
 };
... ...
@@ -488,7 +485,6 @@ static const AVFilterPad abuffersink_inputs[] = {
488 488
         .name           = "default",
489 489
         .type           = AVMEDIA_TYPE_AUDIO,
490 490
         .filter_frame   = filter_frame,
491
-        .min_perms      = AV_PERM_READ | AV_PERM_PRESERVE,
492 491
     },
493 492
     { NULL },
494 493
 };
... ...
@@ -52,7 +52,6 @@ static int split_init(AVFilterContext *ctx, const char *args)
52 52
         snprintf(name, sizeof(name), "output%d", i);
53 53
         pad.type = ctx->filter->inputs[0].type;
54 54
         pad.name = av_strdup(name);
55
-        pad.rej_perms = AV_PERM_WRITE;
56 55
 
57 56
         ff_insert_outpad(ctx, i, &pad);
58 57
     }
... ...
@@ -176,12 +176,11 @@ static const AVFilterPad alphamerge_inputs[] = {
176 176
         .config_props     = config_input_main,
177 177
         .get_video_buffer = ff_null_get_video_buffer,
178 178
         .filter_frame     = filter_frame,
179
-        .min_perms        = AV_PERM_READ | AV_PERM_WRITE | AV_PERM_PRESERVE,
179
+        .needs_writable   = 1,
180 180
     },{
181 181
         .name             = "alpha",
182 182
         .type             = AVMEDIA_TYPE_VIDEO,
183 183
         .filter_frame     = filter_frame,
184
-        .min_perms        = AV_PERM_READ | AV_PERM_PRESERVE,
185 184
     },
186 185
     { NULL }
187 186
 };
... ...
@@ -94,7 +94,6 @@ static const AVFilterPad bbox_inputs[] = {
94 94
         .type             = AVMEDIA_TYPE_VIDEO,
95 95
         .get_video_buffer = ff_null_get_video_buffer,
96 96
         .filter_frame     = filter_frame,
97
-        .min_perms        = AV_PERM_READ,
98 97
     },
99 98
     { NULL }
100 99
 };
... ...
@@ -560,7 +560,6 @@ static const AVFilterPad deshake_inputs[] = {
560 560
         .type         = AVMEDIA_TYPE_VIDEO,
561 561
         .filter_frame = filter_frame,
562 562
         .config_props = config_props,
563
-        .min_perms    = AV_PERM_READ | AV_PERM_PRESERVE,
564 563
     },
565 564
     { NULL }
566 565
 };
... ...
@@ -273,7 +273,6 @@ static const AVFilterPad avfilter_vf_fps_inputs[] = {
273 273
     {
274 274
         .name        = "default",
275 275
         .type        = AVMEDIA_TYPE_VIDEO,
276
-        .min_perms   = AV_PERM_READ | AV_PERM_PRESERVE,
277 276
         .filter_frame = filter_frame,
278 277
     },
279 278
     { NULL }
... ...
@@ -283,7 +282,6 @@ static const AVFilterPad avfilter_vf_fps_outputs[] = {
283 283
     {
284 284
         .name          = "default",
285 285
         .type          = AVMEDIA_TYPE_VIDEO,
286
-        .rej_perms     = AV_PERM_WRITE,
287 286
         .request_frame = request_frame,
288 287
         .config_props  = config_props
289 288
     },
... ...
@@ -299,7 +299,6 @@ static const AVFilterPad idet_inputs[] = {
299 299
         .name         = "default",
300 300
         .type         = AVMEDIA_TYPE_VIDEO,
301 301
         .filter_frame = filter_frame,
302
-        .min_perms    = AV_PERM_PRESERVE,
303 302
     },
304 303
     { NULL }
305 304
 };
... ...
@@ -308,7 +307,6 @@ static const AVFilterPad idet_outputs[] = {
308 308
     {
309 309
         .name          = "default",
310 310
         .type          = AVMEDIA_TYPE_VIDEO,
311
-        .rej_perms     = AV_PERM_WRITE,
312 311
         .request_frame = request_frame,
313 312
     },
314 313
     { NULL }
... ...
@@ -343,7 +343,6 @@ static const AVFilterPad noise_inputs[] = {
343 343
         .get_video_buffer = ff_null_get_video_buffer,
344 344
         .filter_frame     = filter_frame,
345 345
         .config_props     = config_input,
346
-        .min_perms        = AV_PERM_READ,
347 346
     },
348 347
     { NULL }
349 348
 };
... ...
@@ -654,7 +654,6 @@ static const AVFilterPad avfilter_vf_overlay_outputs[] = {
654 654
     {
655 655
         .name          = "default",
656 656
         .type          = AVMEDIA_TYPE_VIDEO,
657
-        .rej_perms     = AV_PERM_WRITE,
658 657
         .config_props  = config_output,
659 658
         .request_frame = request_frame,
660 659
     },
... ...
@@ -287,7 +287,6 @@ static const AVFilterPad smartblur_inputs[] = {
287 287
         .type         = AVMEDIA_TYPE_VIDEO,
288 288
         .filter_frame = filter_frame,
289 289
         .config_props = config_props,
290
-        .min_perms    = AV_PERM_READ,
291 290
     },
292 291
     { NULL }
293 292
 };
... ...
@@ -479,7 +479,6 @@ static const AVFilterPad avfilter_vf_yadif_inputs[] = {
479 479
         .name             = "default",
480 480
         .type             = AVMEDIA_TYPE_VIDEO,
481 481
         .filter_frame     = filter_frame,
482
-        .min_perms        = AV_PERM_PRESERVE,
483 482
     },
484 483
     { NULL }
485 484
 };