summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-11 14:48:19 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-11 14:48:19 +0200
commitab4afcb85b3ac23da3bce7fd9bc70d11b8bb28a4 (patch)
tree9219d482f09609c31128e3b0da41a3c6e6f6a277 /libavfilter
parent7eb1ea2ae672da791d637be0e3aad44db7df16d3 (diff)
downloadffmpeg-streaming-ab4afcb85b3ac23da3bce7fd9bc70d11b8bb28a4.zip
ffmpeg-streaming-ab4afcb85b3ac23da3bce7fd9bc70d11b8bb28a4.tar.gz
lavfi/blackdetect: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.c1
-rw-r--r--libavfilter/vf_blackdetect.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 5604ba5..3c37dee 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -682,7 +682,6 @@ static const char *const filters_left_to_update[] = {
"astreamsync",
"atempo",
"bbox",
- "blackdetect",
"buffer",
"flite",
"hue",
diff --git a/libavfilter/vf_blackdetect.c b/libavfilter/vf_blackdetect.c
index e8af624..9c9e6b4 100644
--- a/libavfilter/vf_blackdetect.c
+++ b/libavfilter/vf_blackdetect.c
@@ -82,20 +82,6 @@ static int query_formats(AVFilterContext *ctx)
return 0;
}
-static av_cold int init(AVFilterContext *ctx, const char *args)
-{
- int ret;
- BlackDetectContext *blackdetect = ctx->priv;
-
- blackdetect->class = &blackdetect_class;
- av_opt_set_defaults(blackdetect);
-
- if ((ret = av_set_options_string(blackdetect, args, "=", ":")) < 0)
- return ret;
-
- return 0;
-}
-
static int config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
@@ -211,7 +197,6 @@ AVFilter avfilter_vf_blackdetect = {
.name = "blackdetect",
.description = NULL_IF_CONFIG_SMALL("Detect video intervals that are (almost) black."),
.priv_size = sizeof(BlackDetectContext),
- .init = init,
.query_formats = query_formats,
.inputs = blackdetect_inputs,
.outputs = blackdetect_outputs,
OpenPOWER on IntegriCloud