]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_hwupload.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_hwupload.c
index 7c5dd497b0ea2e45160037947c06f39e38014e37..8263829a396d2a96a95f93a4d6771cc9da0200fc 100644 (file)
@@ -90,9 +90,9 @@ static int hwupload_query_formats(AVFilterContext *avctx)
         }
     }
 
-    if ((err = ff_formats_ref(input_formats, &avctx->inputs[0]->out_formats)) < 0 ||
+    if ((err = ff_formats_ref(input_formats, &avctx->inputs[0]->outcfg.formats)) < 0 ||
         (err = ff_formats_ref(ff_make_format_list(output_pix_fmts),
-                              &avctx->outputs[0]->in_formats)) < 0)
+                              &avctx->outputs[0]->incfg.formats)) < 0)
         goto fail;
 
     av_hwframe_constraints_free(&constraints);
@@ -250,7 +250,7 @@ static const AVFilterPad hwupload_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_hwupload = {
+const AVFilter ff_vf_hwupload = {
     .name          = "hwupload",
     .description   = NULL_IF_CONFIG_SMALL("Upload a normal frame to a hardware frame"),
     .uninit        = hwupload_uninit,