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