... | ... |
@@ -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 |
}; |
... | ... |
@@ -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 } |