AVFilterFormats *main_formats = ff_make_format_list(main_fmts);
int ret;
- if ((ret = ff_formats_ref(main_formats, &ctx->inputs[0]->out_formats)) < 0 ||
- (ret = ff_formats_ref(main_formats, &ctx->outputs[0]->in_formats)) < 0)
+ if ((ret = ff_formats_ref(main_formats, &ctx->inputs[0]->outcfg.formats)) < 0 ||
+ (ret = ff_formats_ref(main_formats, &ctx->outputs[0]->incfg.formats)) < 0)
return ret;
return ff_formats_ref(ff_make_format_list(alpha_fmts),
- &ctx->inputs[1]->out_formats);
+ &ctx->inputs[1]->outcfg.formats);
}
static int config_input_main(AVFilterLink *inlink)
FRAMESYNC_DEFINE_CLASS(alphamerge, AlphaMergeContext, fs);
-AVFilter ff_vf_alphamerge = {
+const AVFilter ff_vf_alphamerge = {
.name = "alphamerge",
.description = NULL_IF_CONFIG_SMALL("Copy the luma value of the second "
"input into the alpha channel of the first input."),