summaryrefslogtreecommitdiff
path: root/libavfilter/af_silencedetect.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-10 22:05:12 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-10 23:16:02 +0200
commit1b1688bfc640ab73f05fbe99bfbb400dced5eef6 (patch)
tree2ffe200c4deb6177955134fc3d7a811296b3198e /libavfilter/af_silencedetect.c
parent7c11c216690c11a4e578353fb05f0f64978eeaf2 (diff)
downloadffmpeg-1b1688bfc640ab73f05fbe99bfbb400dced5eef6.tar.gz
lavfi/silencedetect: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter/af_silencedetect.c')
-rw-r--r--libavfilter/af_silencedetect.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libavfilter/af_silencedetect.c b/libavfilter/af_silencedetect.c
index dbd9f5ffd7..eb4718b268 100644
--- a/libavfilter/af_silencedetect.c
+++ b/libavfilter/af_silencedetect.c
@@ -54,22 +54,6 @@ static const AVOption silencedetect_options[] = {
AVFILTER_DEFINE_CLASS(silencedetect);
-static av_cold int init(AVFilterContext *ctx, const char *args)
-{
- int ret;
- SilenceDetectContext *silence = ctx->priv;
-
- silence->class = &silencedetect_class;
- av_opt_set_defaults(silence);
-
- if ((ret = av_set_options_string(silence, args, "=", ":")) < 0)
- return ret;
-
- av_opt_free(silence);
-
- return 0;
-}
-
static char *get_metadata_val(AVFrame *insamples, const char *key)
{
AVDictionaryEntry *e = av_dict_get(insamples->metadata, key, NULL, 0);
@@ -176,7 +160,6 @@ AVFilter avfilter_af_silencedetect = {
.name = "silencedetect",
.description = NULL_IF_CONFIG_SMALL("Detect silence."),
.priv_size = sizeof(SilenceDetectContext),
- .init = init,
.query_formats = query_formats,
.inputs = silencedetect_inputs,
.outputs = silencedetect_outputs,