Commit 81080640 authored by Mark Harris's avatar Mark Harris Committed by Michael Niedermayer

avfilter/vf_chromashift: Fix mixed declaration and code

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 01dc152a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment