]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_asyncts.c
Merge commit 'dc574658d15ad8f171dbdecbdce7197acf9424a0'
[ffmpeg] / libavfilter / af_asyncts.c
index 244f53d3c9658918871280c0242ebed446fef5c1..13c5a915c40c43545db4d0f22da33fd2402b64bf 100644 (file)
@@ -60,17 +60,9 @@ static const AVOption asyncts_options[] = {
 
 AVFILTER_DEFINE_CLASS(asyncts);
 
-static int init(AVFilterContext *ctx, const char *args)
+static int init(AVFilterContext *ctx)
 {
     ASyncContext *s = ctx->priv;
-    int ret;
-
-    s->class = &asyncts_class;
-    av_opt_set_defaults(s);
-
-    if ((ret = av_set_options_string(s, args, "=", ":")) < 0)
-        return ret;
-    av_opt_free(s);
 
     s->pts         = AV_NOPTS_VALUE;
     s->first_frame = 1;
@@ -319,8 +311,8 @@ AVFilter avfilter_af_asyncts = {
     .uninit      = uninit,
 
     .priv_size   = sizeof(ASyncContext),
+    .priv_class  = &asyncts_class,
 
     .inputs      = avfilter_af_asyncts_inputs,
     .outputs     = avfilter_af_asyncts_outputs,
-    .priv_class = &asyncts_class,
 };