This is mostly automated global search and replace
The deprecated aconvert filter is disabled, if it still has users
it should be updated
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -38,12 +38,12 @@ typedef struct { |
38 | 38 |
struct SwrContext *swr; |
39 | 39 |
} AConvertContext; |
40 | 40 |
|
41 |
-static av_cold int init(AVFilterContext *ctx, const char *args0) |
|
41 |
+static av_cold int init(AVFilterContext *ctx) |
|
42 | 42 |
{ |
43 | 43 |
AConvertContext *aconvert = ctx->priv; |
44 | 44 |
char *arg, *ptr = NULL; |
45 | 45 |
int ret = 0; |
46 |
- char *args = av_strdup(args0); |
|
46 |
+ char *args = av_strdup(NULL); |
|
47 | 47 |
|
48 | 48 |
av_log(ctx, AV_LOG_WARNING, "This filter is deprecated, use aformat instead\n"); |
49 | 49 |
|
... | ... |
@@ -303,7 +303,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) |
303 | 303 |
return ff_filter_frame(ctx->outputs[0], outbuf); |
304 | 304 |
} |
305 | 305 |
|
306 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
306 |
+static av_cold int init(AVFilterContext *ctx) |
|
307 | 307 |
{ |
308 | 308 |
AMergeContext *am = ctx->priv; |
309 | 309 |
int i; |
... | ... |
@@ -71,7 +71,7 @@ static const AVOption astreamsync_options[] = { |
71 | 71 |
|
72 | 72 |
AVFILTER_DEFINE_CLASS(astreamsync); |
73 | 73 |
|
74 |
-static av_cold int init(AVFilterContext *ctx, const char *args0) |
|
74 |
+static av_cold int init(AVFilterContext *ctx) |
|
75 | 75 |
{ |
76 | 76 |
AStreamSyncContext *as = ctx->priv; |
77 | 77 |
int r, i; |
... | ... |
@@ -960,7 +960,7 @@ static int yae_flush(ATempoContext *atempo, |
960 | 960 |
return atempo->position[1] == stop_here ? 0 : AVERROR(EAGAIN); |
961 | 961 |
} |
962 | 962 |
|
963 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
963 |
+static av_cold int init(AVFilterContext *ctx) |
|
964 | 964 |
{ |
965 | 965 |
ATempoContext *atempo = ctx->priv; |
966 | 966 |
atempo->format = AV_SAMPLE_FMT_NONE; |
... | ... |
@@ -116,7 +116,7 @@ typedef struct { |
116 | 116 |
double b0, double b1, double b2, double a1, double a2); |
117 | 117 |
} BiquadsContext; |
118 | 118 |
|
119 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
119 |
+static av_cold int init(AVFilterContext *ctx) |
|
120 | 120 |
{ |
121 | 121 |
BiquadsContext *p = ctx->priv; |
122 | 122 |
|
... | ... |
@@ -446,12 +446,12 @@ static const AVFilterPad outputs[] = { |
446 | 446 |
|
447 | 447 |
#define DEFINE_BIQUAD_FILTER(name_, description_) \ |
448 | 448 |
AVFILTER_DEFINE_CLASS(name_); \ |
449 |
-static av_cold int name_##_init(AVFilterContext *ctx, const char *args) \ |
|
449 |
+static av_cold int name_##_init(AVFilterContext *ctx) \ |
|
450 | 450 |
{ \ |
451 | 451 |
BiquadsContext *p = ctx->priv; \ |
452 | 452 |
p->class = &name_##_class; \ |
453 | 453 |
p->filter_type = name_; \ |
454 |
- return init(ctx, args); \ |
|
454 |
+ return init(ctx); \ |
|
455 | 455 |
} \ |
456 | 456 |
\ |
457 | 457 |
AVFilter avfilter_af_##name_ = { \ |
... | ... |
@@ -99,7 +99,7 @@ static int parse_channel_name(char **arg, int *rchannel, int *rnamed) |
99 | 99 |
return AVERROR(EINVAL); |
100 | 100 |
} |
101 | 101 |
|
102 |
-static av_cold int init(AVFilterContext *ctx, const char *args0) |
|
102 |
+static av_cold int init(AVFilterContext *ctx) |
|
103 | 103 |
{ |
104 | 104 |
PanContext *const pan = ctx->priv; |
105 | 105 |
char *arg, *arg0, *tokenizer, *args = av_strdup(pan->args); |
... | ... |
@@ -82,7 +82,7 @@ static const AVOption aevalsrc_options[]= { |
82 | 82 |
|
83 | 83 |
AVFILTER_DEFINE_CLASS(aevalsrc); |
84 | 84 |
|
85 |
-static int init(AVFilterContext *ctx, const char *args) |
|
85 |
+static int init(AVFilterContext *ctx) |
|
86 | 86 |
{ |
87 | 87 |
EvalContext *eval = ctx->priv; |
88 | 88 |
char *args1 = av_strdup(eval->exprs); |
... | ... |
@@ -131,7 +131,7 @@ static int select_voice(struct voice_entry **entry_ret, const char *voice_name, |
131 | 131 |
return AVERROR(EINVAL); |
132 | 132 |
} |
133 | 133 |
|
134 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
134 |
+static av_cold int init(AVFilterContext *ctx) |
|
135 | 135 |
{ |
136 | 136 |
FliteContext *flite = ctx->priv; |
137 | 137 |
int ret = 0; |
... | ... |
@@ -120,7 +120,7 @@ static void make_sin_table(int16_t *sin) |
120 | 120 |
sin[i + 2 * half_pi] = -sin[i]; |
121 | 121 |
} |
122 | 122 |
|
123 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
123 |
+static av_cold int init(AVFilterContext *ctx) |
|
124 | 124 |
{ |
125 | 125 |
SineContext *sine = ctx->priv; |
126 | 126 |
|
... | ... |
@@ -355,7 +355,7 @@ static int request_frame(AVFilterLink *outlink) |
355 | 355 |
} |
356 | 356 |
} |
357 | 357 |
|
358 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
358 |
+static av_cold int init(AVFilterContext *ctx) |
|
359 | 359 |
{ |
360 | 360 |
ConcatContext *cat = ctx->priv; |
361 | 361 |
unsigned seg, type, str; |
... | ... |
@@ -491,7 +491,7 @@ typedef struct AVFilter { |
491 | 491 |
* callback. Args contains the user-supplied parameters, opaque is |
492 | 492 |
* used for providing binary data. |
493 | 493 |
*/ |
494 |
- int (*init_opaque)(AVFilterContext *ctx, const char *args, void *opaque); |
|
494 |
+ int (*init_opaque)(AVFilterContext *ctx, void *opaque); |
|
495 | 495 |
|
496 | 496 |
/** |
497 | 497 |
* Shorthand syntax for init arguments. |
... | ... |
@@ -362,7 +362,7 @@ int attribute_align_arg av_buffersink_poll_frame(AVFilterContext *ctx) |
362 | 362 |
return av_fifo_size(buf->fifo)/sizeof(AVFilterBufferRef *) + ff_poll_frame(inlink); |
363 | 363 |
} |
364 | 364 |
|
365 |
-static av_cold int vsink_init(AVFilterContext *ctx, const char *args, void *opaque) |
|
365 |
+static av_cold int vsink_init(AVFilterContext *ctx, void *opaque) |
|
366 | 366 |
{ |
367 | 367 |
BufferSinkContext *buf = ctx->priv; |
368 | 368 |
AVBufferSinkParams *params = opaque; |
... | ... |
@@ -411,7 +411,7 @@ static int64_t *concat_channels_lists(const int64_t *layouts, const int *counts) |
411 | 411 |
return list; |
412 | 412 |
} |
413 | 413 |
|
414 |
-static av_cold int asink_init(AVFilterContext *ctx, const char *args, void *opaque) |
|
414 |
+static av_cold int asink_init(AVFilterContext *ctx, void *opaque) |
|
415 | 415 |
{ |
416 | 416 |
BufferSinkContext *buf = ctx->priv; |
417 | 417 |
AVABufferSinkParams *params = opaque; |
... | ... |
@@ -403,7 +403,7 @@ static struct hist_entry *get_histogram(void) |
403 | 403 |
return h; |
404 | 404 |
} |
405 | 405 |
|
406 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
406 |
+static av_cold int init(AVFilterContext *ctx) |
|
407 | 407 |
{ |
408 | 408 |
EBUR128Context *ebur128 = ctx->priv; |
409 | 409 |
AVFilterPad pad; |
... | ... |
@@ -139,7 +139,7 @@ typedef struct { |
139 | 139 |
} SelectContext; |
140 | 140 |
|
141 | 141 |
|
142 |
-static av_cold int init(AVFilterContext *ctx, const char *args, const AVClass *class) |
|
142 |
+static av_cold int init(AVFilterContext *ctx) |
|
143 | 143 |
{ |
144 | 144 |
SelectContext *select = ctx->priv; |
145 | 145 |
int ret; |
... | ... |
@@ -399,12 +399,12 @@ static const AVOption aselect_options[] = { |
399 | 399 |
}; |
400 | 400 |
AVFILTER_DEFINE_CLASS(aselect); |
401 | 401 |
|
402 |
-static av_cold int aselect_init(AVFilterContext *ctx, const char *args) |
|
402 |
+static av_cold int aselect_init(AVFilterContext *ctx) |
|
403 | 403 |
{ |
404 | 404 |
SelectContext *select = ctx->priv; |
405 | 405 |
int ret; |
406 | 406 |
|
407 |
- if ((ret = init(ctx, args, &aselect_class)) < 0) |
|
407 |
+ if ((ret = init(ctx)) < 0) |
|
408 | 408 |
return ret; |
409 | 409 |
|
410 | 410 |
if (select->do_scene_detect) { |
... | ... |
@@ -458,12 +458,12 @@ static const AVOption select_options[] = { |
458 | 458 |
|
459 | 459 |
AVFILTER_DEFINE_CLASS(select); |
460 | 460 |
|
461 |
-static av_cold int select_init(AVFilterContext *ctx, const char *args) |
|
461 |
+static av_cold int select_init(AVFilterContext *ctx) |
|
462 | 462 |
{ |
463 | 463 |
SelectContext *select = ctx->priv; |
464 | 464 |
int ret; |
465 | 465 |
|
466 |
- if ((ret = init(ctx, args, &select_class)) < 0) |
|
466 |
+ if ((ret = init(ctx)) < 0) |
|
467 | 467 |
return ret; |
468 | 468 |
|
469 | 469 |
if (select->do_scene_detect && !CONFIG_AVCODEC) { |
... | ... |
@@ -510,7 +510,7 @@ end: |
510 | 510 |
#define sendcmd_options options |
511 | 511 |
AVFILTER_DEFINE_CLASS(sendcmd); |
512 | 512 |
|
513 |
-static av_cold int sendcmd_init(AVFilterContext *ctx, const char *args) |
|
513 |
+static av_cold int sendcmd_init(AVFilterContext *ctx) |
|
514 | 514 |
{ |
515 | 515 |
return init(ctx); |
516 | 516 |
} |
... | ... |
@@ -552,7 +552,7 @@ AVFilter avfilter_vf_sendcmd = { |
552 | 552 |
#define asendcmd_options options |
553 | 553 |
AVFILTER_DEFINE_CLASS(asendcmd); |
554 | 554 |
|
555 |
-static av_cold int asendcmd_init(AVFilterContext *ctx, const char *args) |
|
555 |
+static av_cold int asendcmd_init(AVFilterContext *ctx) |
|
556 | 556 |
{ |
557 | 557 |
return init(ctx); |
558 | 558 |
} |
... | ... |
@@ -563,7 +563,7 @@ static int movie_request_frame(AVFilterLink *outlink) |
563 | 563 |
|
564 | 564 |
AVFILTER_DEFINE_CLASS(movie); |
565 | 565 |
|
566 |
-static av_cold int movie_init(AVFilterContext *ctx, const char *args) |
|
566 |
+static av_cold int movie_init(AVFilterContext *ctx) |
|
567 | 567 |
{ |
568 | 568 |
return movie_common_init(ctx); |
569 | 569 |
} |
... | ... |
@@ -588,7 +588,7 @@ AVFilter avfilter_avsrc_movie = { |
588 | 588 |
#define amovie_options movie_options |
589 | 589 |
AVFILTER_DEFINE_CLASS(amovie); |
590 | 590 |
|
591 |
-static av_cold int amovie_init(AVFilterContext *ctx, const char *args) |
|
591 |
+static av_cold int amovie_init(AVFilterContext *ctx) |
|
592 | 592 |
{ |
593 | 593 |
return movie_common_init(ctx); |
594 | 594 |
} |
... | ... |
@@ -220,7 +220,7 @@ static void blend_expr(const uint8_t *top, int top_linesize, |
220 | 220 |
} |
221 | 221 |
} |
222 | 222 |
|
223 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
223 |
+static av_cold int init(AVFilterContext *ctx) |
|
224 | 224 |
{ |
225 | 225 |
BlendContext *b = ctx->priv; |
226 | 226 |
int ret, plane; |
... | ... |
@@ -160,7 +160,7 @@ static void calc_coefficients(AVFilterContext *ctx) |
160 | 160 |
|
161 | 161 |
static const char *color_modes[] = {"bt709", "fcc", "bt601", "smpte240m"}; |
162 | 162 |
|
163 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
163 |
+static av_cold int init(AVFilterContext *ctx) |
|
164 | 164 |
{ |
165 | 165 |
ColorMatrixContext *color = ctx->priv; |
166 | 166 |
|
... | ... |
@@ -344,7 +344,7 @@ static int deshake_transform_c(AVFilterContext *ctx, |
344 | 344 |
return ret; |
345 | 345 |
} |
346 | 346 |
|
347 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
347 |
+static av_cold int init(AVFilterContext *ctx) |
|
348 | 348 |
{ |
349 | 349 |
int ret; |
350 | 350 |
DeshakeContext *deshake = ctx->priv; |
... | ... |
@@ -601,7 +601,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char |
601 | 601 |
int ret; |
602 | 602 |
uninit(ctx); |
603 | 603 |
dtext->reinit = 1; |
604 |
- if ((ret = init(ctx, arg)) < 0) |
|
604 |
+ if ((ret = init(ctx)) < 0) |
|
605 | 605 |
return ret; |
606 | 606 |
return config_input(ctx->inputs[0]); |
607 | 607 |
} |
... | ... |
@@ -50,7 +50,7 @@ static const AVOption edgedetect_options[] = { |
50 | 50 |
|
51 | 51 |
AVFILTER_DEFINE_CLASS(edgedetect); |
52 | 52 |
|
53 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
53 |
+static av_cold int init(AVFilterContext *ctx) |
|
54 | 54 |
{ |
55 | 55 |
EdgeDetectContext *edgedetect = ctx->priv; |
56 | 56 |
|
... | ... |
@@ -88,7 +88,7 @@ static double alpha(void *priv, double x, double y) { return getpix(priv, x, y, |
88 | 88 |
static const char *const var_names[] = { "X", "Y", "W", "H", "N", "SW", "SH", "T", NULL }; |
89 | 89 |
enum { VAR_X, VAR_Y, VAR_W, VAR_H, VAR_N, VAR_SW, VAR_SH, VAR_T, VAR_VARS_NB }; |
90 | 90 |
|
91 |
-static av_cold int geq_init(AVFilterContext *ctx, const char *args) |
|
91 |
+static av_cold int geq_init(AVFilterContext *ctx) |
|
92 | 92 |
{ |
93 | 93 |
GEQContext *geq = ctx->priv; |
94 | 94 |
int plane, ret = 0; |
... | ... |
@@ -120,7 +120,7 @@ static int set_expr(AVExpr **pexpr, const char *expr, const char *option, void * |
120 | 120 |
return 0; |
121 | 121 |
} |
122 | 122 |
|
123 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
123 |
+static av_cold int init(AVFilterContext *ctx) |
|
124 | 124 |
{ |
125 | 125 |
HueContext *hue = ctx->priv; |
126 | 126 |
int ret; |
... | ... |
@@ -74,7 +74,7 @@ typedef struct { |
74 | 74 |
const AVClass *class; |
75 | 75 |
char *name; |
76 | 76 |
char *params; |
77 |
- int (*init)(AVFilterContext *ctx, const char *args); |
|
77 |
+ int (*init)(AVFilterContext *ctx); |
|
78 | 78 |
void (*uninit)(AVFilterContext *ctx); |
79 | 79 |
void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg); |
80 | 80 |
void *priv; |
... | ... |
@@ -86,7 +86,7 @@ typedef struct { |
86 | 86 |
double param3, param4; |
87 | 87 |
} SmoothContext; |
88 | 88 |
|
89 |
-static av_cold int smooth_init(AVFilterContext *ctx, const char *args) |
|
89 |
+static av_cold int smooth_init(AVFilterContext *ctx) |
|
90 | 90 |
{ |
91 | 91 |
OCVContext *ocv = ctx->priv; |
92 | 92 |
SmoothContext *smooth = ocv->priv; |
... | ... |
@@ -252,7 +252,7 @@ typedef struct { |
252 | 252 |
IplConvKernel *kernel; |
253 | 253 |
} DilateContext; |
254 | 254 |
|
255 |
-static av_cold int dilate_init(AVFilterContext *ctx, const char *args) |
|
255 |
+static av_cold int dilate_init(AVFilterContext *ctx) |
|
256 | 256 |
{ |
257 | 257 |
OCVContext *ocv = ctx->priv; |
258 | 258 |
DilateContext *dilate = ocv->priv; |
... | ... |
@@ -306,7 +306,7 @@ static void erode_end_frame_filter(AVFilterContext *ctx, IplImage *inimg, IplIma |
306 | 306 |
typedef struct { |
307 | 307 |
const char *name; |
308 | 308 |
size_t priv_size; |
309 |
- int (*init)(AVFilterContext *ctx, const char *args); |
|
309 |
+ int (*init)(AVFilterContext *ctx); |
|
310 | 310 |
void (*uninit)(AVFilterContext *ctx); |
311 | 311 |
void (*end_frame_filter)(AVFilterContext *ctx, IplImage *inimg, IplImage *outimg); |
312 | 312 |
} OCVFilterEntry; |
... | ... |
@@ -331,7 +331,7 @@ static av_cold int init(AVFilterContext *ctx) |
331 | 331 |
|
332 | 332 |
if (!(ocv->priv = av_mallocz(entry->priv_size))) |
333 | 333 |
return AVERROR(ENOMEM); |
334 |
- return ocv->init(ctx, ocv->params); |
|
334 |
+ return ocv->init(ctx); |
|
335 | 335 |
} |
336 | 336 |
} |
337 | 337 |
|
... | ... |
@@ -635,11 +635,12 @@ static int vf_default_query_format(struct vf_instance *vf, unsigned int fmt){ |
635 | 635 |
} |
636 | 636 |
|
637 | 637 |
|
638 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
638 |
+static av_cold int init(AVFilterContext *ctx) |
|
639 | 639 |
{ |
640 | 640 |
MPContext *m = ctx->priv; |
641 | 641 |
int cpu_flags = av_get_cpu_flags(); |
642 | 642 |
char name[256]; |
643 |
+ const char *args; |
|
643 | 644 |
int i; |
644 | 645 |
|
645 | 646 |
ff_gCpuCaps.hasMMX = cpu_flags & AV_CPU_FLAG_MMX; |
... | ... |
@@ -400,7 +400,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref) |
400 | 400 |
return ret; |
401 | 401 |
} |
402 | 402 |
|
403 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
403 |
+static av_cold int init(AVFilterContext *ctx) |
|
404 | 404 |
{ |
405 | 405 |
NoiseContext *n = ctx->priv; |
406 | 406 |
int ret, i; |
... | ... |
@@ -118,7 +118,7 @@ typedef struct { |
118 | 118 |
AVExpr *x_pexpr, *y_pexpr, *enable_pexpr; |
119 | 119 |
} OverlayContext; |
120 | 120 |
|
121 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
121 |
+static av_cold int init(AVFilterContext *ctx) |
|
122 | 122 |
{ |
123 | 123 |
OverlayContext *over = ctx->priv; |
124 | 124 |
|
... | ... |
@@ -277,7 +277,7 @@ static void generate_half_size_image(const uint8_t *src_data, int src_linesize, |
277 | 277 |
src_w/2, src_h/2, 0, max_mask_size); |
278 | 278 |
} |
279 | 279 |
|
280 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
280 |
+static av_cold int init(AVFilterContext *ctx) |
|
281 | 281 |
{ |
282 | 282 |
RemovelogoContext *removelogo = ctx->priv; |
283 | 283 |
int ***mask; |
... | ... |
@@ -85,7 +85,7 @@ static void ass_log(int ass_level, const char *fmt, va_list args, void *ctx) |
85 | 85 |
av_log(ctx, level, "\n"); |
86 | 86 |
} |
87 | 87 |
|
88 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
88 |
+static av_cold int init(AVFilterContext *ctx) |
|
89 | 89 |
{ |
90 | 90 |
AssContext *ass = ctx->priv; |
91 | 91 |
|
... | ... |
@@ -210,10 +210,10 @@ static const AVOption ass_options[] = { |
210 | 210 |
|
211 | 211 |
AVFILTER_DEFINE_CLASS(ass); |
212 | 212 |
|
213 |
-static av_cold int init_ass(AVFilterContext *ctx, const char *args) |
|
213 |
+static av_cold int init_ass(AVFilterContext *ctx) |
|
214 | 214 |
{ |
215 | 215 |
AssContext *ass = ctx->priv; |
216 |
- int ret = init(ctx, args); |
|
216 |
+ int ret = init(ctx); |
|
217 | 217 |
|
218 | 218 |
if (ret < 0) |
219 | 219 |
return ret; |
... | ... |
@@ -251,7 +251,7 @@ static const AVOption subtitles_options[] = { |
251 | 251 |
|
252 | 252 |
AVFILTER_DEFINE_CLASS(subtitles); |
253 | 253 |
|
254 |
-static av_cold int init_subtitles(AVFilterContext *ctx, const char *args) |
|
254 |
+static av_cold int init_subtitles(AVFilterContext *ctx) |
|
255 | 255 |
{ |
256 | 256 |
int ret, sid; |
257 | 257 |
AVDictionary *codec_opts = NULL; |
... | ... |
@@ -264,7 +264,7 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args) |
264 | 264 |
AssContext *ass = ctx->priv; |
265 | 265 |
|
266 | 266 |
/* Init libass */ |
267 |
- ret = init(ctx, args); |
|
267 |
+ ret = init(ctx); |
|
268 | 268 |
if (ret < 0) |
269 | 269 |
return ret; |
270 | 270 |
ass->track = ass_new_track(ass->library); |
... | ... |
@@ -68,7 +68,7 @@ static const AVOption telecine_options[] = { |
68 | 68 |
|
69 | 69 |
AVFILTER_DEFINE_CLASS(telecine); |
70 | 70 |
|
71 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
71 |
+static av_cold int init(AVFilterContext *ctx) |
|
72 | 72 |
{ |
73 | 73 |
TelecineContext *tc = ctx->priv; |
74 | 74 |
const char *p; |
... | ... |
@@ -159,7 +159,7 @@ static int init_pattern_from_file(AVFilterContext *ctx) |
159 | 159 |
return init_pattern_from_string(ctx); |
160 | 160 |
} |
161 | 161 |
|
162 |
-static int init(AVFilterContext *ctx, const char *args) |
|
162 |
+static int init(AVFilterContext *ctx) |
|
163 | 163 |
{ |
164 | 164 |
CellAutoContext *cellauto = ctx->priv; |
165 | 165 |
int ret; |
... | ... |
@@ -119,7 +119,7 @@ static const AVOption mandelbrot_options[] = { |
119 | 119 |
|
120 | 120 |
AVFILTER_DEFINE_CLASS(mandelbrot); |
121 | 121 |
|
122 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
122 |
+static av_cold int init(AVFilterContext *ctx) |
|
123 | 123 |
{ |
124 | 124 |
MBContext *mb = ctx->priv; |
125 | 125 |
|
... | ... |
@@ -256,7 +256,7 @@ static void ring2_test(uint8_t *dst, int dst_linesize, int off) |
256 | 256 |
} |
257 | 257 |
} |
258 | 258 |
|
259 |
-static av_cold int init(AVFilterContext *ctx, const char *args) |
|
259 |
+static av_cold int init(AVFilterContext *ctx) |
|
260 | 260 |
{ |
261 | 261 |
MPTestContext *test = ctx->priv; |
262 | 262 |
int64_t duration = -1; |
... | ... |
@@ -213,7 +213,7 @@ static void color_fill_picture(AVFilterContext *ctx, AVFrame *picref) |
213 | 213 |
0, 0, test->w, test->h); |
214 | 214 |
} |
215 | 215 |
|
216 |
-static av_cold int color_init(AVFilterContext *ctx, const char *args) |
|
216 |
+static av_cold int color_init(AVFilterContext *ctx) |
|
217 | 217 |
{ |
218 | 218 |
TestSourceContext *test = ctx->priv; |
219 | 219 |
test->fill_picture_fn = color_fill_picture; |
... | ... |
@@ -282,7 +282,7 @@ AVFILTER_DEFINE_CLASS(nullsrc); |
282 | 282 |
|
283 | 283 |
static void nullsrc_fill_picture(AVFilterContext *ctx, AVFrame *picref) { } |
284 | 284 |
|
285 |
-static av_cold int nullsrc_init(AVFilterContext *ctx, const char *args) |
|
285 |
+static av_cold int nullsrc_init(AVFilterContext *ctx) |
|
286 | 286 |
{ |
287 | 287 |
TestSourceContext *test = ctx->priv; |
288 | 288 |
|
... | ... |
@@ -754,7 +754,7 @@ static void smptebars_fill_picture(AVFilterContext *ctx, AVFrame *picref) |
754 | 754 |
draw_bar(test, black, x, r_h + w_h, test->w - x, p_h, picref); |
755 | 755 |
} |
756 | 756 |
|
757 |
-static av_cold int smptebars_init(AVFilterContext *ctx, const char *args) |
|
757 |
+static av_cold int smptebars_init(AVFilterContext *ctx) |
|
758 | 758 |
{ |
759 | 759 |
TestSourceContext *test = ctx->priv; |
760 | 760 |
|