Unified · Split
| @@ -1865,9 +1865,7 @@ duration of the detected black interval expressed in seconds. · 1864 unmodified lines | ||
| 1865 | 1865 | In order to display the output lines, you need to set the loglevel at |
| 1866 | 1866 | least to the AV_LOG_INFO value. |
| 1867 | 1867 | |
| 1868 | −This filter accepts a list of options in the form of | |
| 1869 | −@var{key}=@var{value} pairs separated by ":". A description of the | |
| 1870 | −accepted options follows. | |
| 1868 | +The filter accepts the following options: | |
| 1871 | 1869 | |
| 1872 | 1870 | @table @option |
| 1873 | 1871 | @item black_min_duration, d |
| @@ -682,7 +682,6 @@ static const char *const filters_left_to_update[] = { · 681 unmodified lines | ||
| 682 | 682 | "astreamsync", |
| 683 | 683 | "atempo", |
| 684 | 684 | "bbox", |
| 685 | − "blackdetect", | |
| 686 | 685 | "buffer", |
| 687 | 686 | "flite", |
| 688 | 687 | "hue", |
| @@ -82,20 +82,6 @@ static int query_formats(AVFilterContext *ctx) · 81 unmodified lines | ||
| 82 | 82 | return 0; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | −static av_cold int init(AVFilterContext *ctx, const char *args) | |
| 86 | −{ | |
| 87 | − int ret; | |
| 88 | − BlackDetectContext *blackdetect = ctx->priv; | |
| 89 | − | |
| 90 | − blackdetect->class = &blackdetect_class; | |
| 91 | − av_opt_set_defaults(blackdetect); | |
| 92 | − | |
| 93 | − if ((ret = av_set_options_string(blackdetect, args, "=", ":")) < 0) | |
| 94 | − return ret; | |
| 95 | − | |
| 96 | − return 0; | |
| 97 | −} | |
| 98 | − | |
| 99 | 85 | static int config_input(AVFilterLink *inlink) |
| 100 | 86 | { |
| 101 | 87 | AVFilterContext *ctx = inlink->dst; |
| @@ -211,7 +197,6 @@ AVFilter avfilter_vf_blackdetect = { · 109 unmodified lines | ||
| 211 | 197 | .name = "blackdetect", |
| 212 | 198 | .description = NULL_IF_CONFIG_SMALL("Detect video intervals that are (almost) black."), |
| 213 | 199 | .priv_size = sizeof(BlackDetectContext), |
| 214 | − .init = init, | |
| 215 | 200 | .query_formats = query_formats, |
| 216 | 201 | .inputs = blackdetect_inputs, |
| 217 | 202 | .outputs = blackdetect_outputs, |