]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_alphamerge.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_alphamerge.c
index 866d91f9e8f70839a886060c55420cd1e58951ca..9b01db6605239e25931b92b18a8cdba40df57ba3 100644 (file)
@@ -103,12 +103,12 @@ static int query_formats(AVFilterContext *ctx)
     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)
@@ -188,7 +188,7 @@ static const AVOption alphamerge_options[] = {
 
 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."),