]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_procamp_vaapi.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_procamp_vaapi.c
index c3e9866f227e137139354b31bf05f0d3c951dcfb..9d0c813e6df5779d71a3dbd01fff670de85386f5 100644 (file)
@@ -150,7 +150,7 @@ static int procamp_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame
 
     err = av_frame_copy_props(output_frame, input_frame);
     if (err < 0)
-        return err;
+        goto fail;
 
     err = ff_vaapi_vpp_init_params(avctx, &params,
                                    input_frame, output_frame);
@@ -233,7 +233,7 @@ static const AVFilterPad procamp_vaapi_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_procamp_vaapi = {
+const AVFilter ff_vf_procamp_vaapi = {
     .name          = "procamp_vaapi",
     .description   = NULL_IF_CONFIG_SMALL("ProcAmp (color balance) adjustments for hue, saturation, brightness, contrast"),
     .priv_size     = sizeof(ProcampVAAPIContext),