diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-02-25 21:21:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-09 19:09:33 +0200 |
commit | b2b25b0659fa047da6266d2ce165d43011136b30 (patch) | |
tree | 3b43a7e7ffb71855c4a4b36001214907055a9233 | |
parent | ac20e3ab8ed497549ee2a62754f01eee5e7a5066 (diff) | |
download | ffmpeg-b2b25b0659fa047da6266d2ce165d43011136b30.tar.gz |
af_asyncts: switch to an AVOptions-based system.
-rw-r--r-- | libavfilter/af_asyncts.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/af_asyncts.c b/libavfilter/af_asyncts.c index 006839c671..06f0af8660 100644 --- a/libavfilter/af_asyncts.c +++ b/libavfilter/af_asyncts.c @@ -67,16 +67,6 @@ static const AVClass async_class = { static int init(AVFilterContext *ctx, const char *args) { ASyncContext *s = ctx->priv; - int ret; - - s->class = &async_class; - av_opt_set_defaults(s); - - if ((ret = av_set_options_string(s, args, "=", ":")) < 0) { - av_log(ctx, AV_LOG_ERROR, "Error parsing options string '%s'.\n", args); - return ret; - } - av_opt_free(s); s->pts = AV_NOPTS_VALUE; s->first_frame = 1; @@ -325,6 +315,7 @@ AVFilter avfilter_af_asyncts = { .uninit = uninit, .priv_size = sizeof(ASyncContext), + .priv_class = &async_class, .inputs = avfilter_af_asyncts_inputs, .outputs = avfilter_af_asyncts_outputs, |