Commit 0773f673 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vsrc_life: Fix mix of declarations and statements

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent df4fca21
......@@ -415,6 +415,8 @@ static int query_formats(AVFilterContext *ctx)
{
LifeContext *life = ctx->priv;
enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_NONE, AV_PIX_FMT_NONE };
AVFilterFormats *fmts_list;
if (life->mold || memcmp(life-> life_color, "\xff\xff\xff", 3)
|| memcmp(life->death_color, "\x00\x00\x00", 3)) {
pix_fmts[0] = AV_PIX_FMT_RGB24;
......@@ -424,7 +426,7 @@ static int query_formats(AVFilterContext *ctx)
life->draw = fill_picture_monoblack;
}
AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts);
fmts_list = ff_make_format_list(pix_fmts);
if (!fmts_list)
return AVERROR(ENOMEM);
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