diff options
author | Mark Harris <mark.hsj@gmail.com> | 2018-11-24 19:17:40 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-11-26 23:47:29 +0100 |
commit | 8108064043bfb98cbc5a5bab9da4229be5f6e846 (patch) | |
tree | 0da3c664fcb7c07b06e5466961e034cf2247572c /libavfilter | |
parent | 01dc152a92d3ea144ac12ef25f41cc8a44f4b4ef (diff) | |
download | ffmpeg-streaming-8108064043bfb98cbc5a5bab9da4229be5f6e846.zip ffmpeg-streaming-8108064043bfb98cbc5a5bab9da4229be5f6e846.tar.gz |
avfilter/vf_chromashift: Fix mixed declaration and code
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_chromashift.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_chromashift.c b/libavfilter/vf_chromashift.c index 068c3c1..d073256 100644 --- a/libavfilter/vf_chromashift.c +++ b/libavfilter/vf_chromashift.c @@ -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); |