avfilter/vf_chromashift: Fix mixed declaration and code
authorMark Harris <mark.hsj@gmail.com>
Sun, 25 Nov 2018 03:17:40 +0000 (19:17 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 26 Nov 2018 22:47:29 +0000 (23:47 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_chromashift.c

index 068c3c1..d073256 100644 (file)
@@ -76,13 +76,14 @@ static int query_formats(AVFilterContext *ctx)
         AV_PIX_FMT_NONE
     };
     const enum AVPixelFormat *pix_fmts;
+    AVFilterFormats *fmts_list;
 
     if (!strcmp(ctx->filter->name, "rgbashift"))
         pix_fmts = rgb_pix_fmts;
     else
         pix_fmts = yuv_pix_fmts;
 
-    AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts);
+    fmts_list = ff_make_format_list(pix_fmts);
     if (!fmts_list)
         return AVERROR(ENOMEM);
     return ff_set_common_formats(ctx, fmts_list);