Unified · Split
| @@ -54,11 +54,11 @@ static const AVOption maskedminmax_options[] = { · 53 unmodified lines | ||
| 54 | 54 | { NULL } |
| 55 | 55 | }; |
| 56 | 56 | |
| 57 | −static av_cold int init(AVFilterContext *ctx) | |
| 57 | +static av_cold int maskedmin_init(AVFilterContext *ctx) | |
| 58 | 58 | { |
| 59 | 59 | MaskedMinMaxContext *s = ctx->priv; |
| 60 | 60 | |
| 61 | − s->maskedmin = !strcmp(ctx->filter->name, "maskedmin"); | |
| 61 | + s->maskedmin = 1; | |
| 62 | 62 | |
| 63 | 63 | return 0; |
| 64 | 64 | } |
| @@ -331,7 +331,7 @@ const AVFilter ff_vf_maskedmin = { · 266 unmodified lines | ||
| 331 | 331 | .description = NULL_IF_CONFIG_SMALL("Apply filtering with minimum difference of two streams."), |
| 332 | 332 | .priv_class = &maskedmin_class, |
| 333 | 333 | .priv_size = sizeof(MaskedMinMaxContext), |
| 334 | − .init = init, | |
| 334 | + .init = maskedmin_init, | |
| 335 | 335 | .uninit = uninit, |
| 336 | 336 | .activate = activate, |
| 337 | 337 | .query_formats = query_formats, |
| @@ -349,7 +349,6 @@ const AVFilter ff_vf_maskedmax = { · 11 unmodified lines | ||
| 349 | 349 | .description = NULL_IF_CONFIG_SMALL("Apply filtering with maximum difference of two streams."), |
| 350 | 350 | .priv_class = &maskedmax_class, |
| 351 | 351 | .priv_size = sizeof(MaskedMinMaxContext), |
| 352 | − .init = init, | |
| 353 | 352 | .uninit = uninit, |
| 354 | 353 | .activate = activate, |
| 355 | 354 | .query_formats = query_formats, |