| @@ -67,16 +67,6 @@ static const AVClass async_class = { | |||||
| static int init(AVFilterContext *ctx, const char *args) | static int init(AVFilterContext *ctx, const char *args) | ||||
| { | { | ||||
| ASyncContext *s = ctx->priv; | 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->pts = AV_NOPTS_VALUE; | ||||
| s->first_frame = 1; | s->first_frame = 1; | ||||
| @@ -325,6 +315,7 @@ AVFilter avfilter_af_asyncts = { | |||||
| .uninit = uninit, | .uninit = uninit, | ||||
| .priv_size = sizeof(ASyncContext), | .priv_size = sizeof(ASyncContext), | ||||
| .priv_class = &async_class, | |||||
| .inputs = avfilter_af_asyncts_inputs, | .inputs = avfilter_af_asyncts_inputs, | ||||
| .outputs = avfilter_af_asyncts_outputs, | .outputs = avfilter_af_asyncts_outputs, | ||||