]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_elbg.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_elbg.c
index 5bccb5f58d9e8bba1a78bbc416fd6bf5532233b6..008f47006892c3cc22a792f327bbc84754331679 100644 (file)
@@ -100,8 +100,8 @@ static int query_formats(AVFilterContext *ctx)
             AV_PIX_FMT_PAL8,
             AV_PIX_FMT_NONE
         };
-        if ((ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[0]->out_formats)) < 0 ||
-            (ret = ff_formats_ref(ff_make_format_list(pal8_fmt), &ctx->outputs[0]->in_formats)) < 0)
+        if ((ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[0]->outcfg.formats)) < 0 ||
+            (ret = ff_formats_ref(ff_make_format_list(pal8_fmt), &ctx->outputs[0]->incfg.formats)) < 0)
             return ret;
     }
     return 0;
@@ -253,7 +253,7 @@ static const AVFilterPad elbg_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_elbg = {
+const AVFilter ff_vf_elbg = {
     .name          = "elbg",
     .description   = NULL_IF_CONFIG_SMALL("Apply posterize effect, using the ELBG algorithm."),
     .priv_size     = sizeof(ELBGContext),