avfilter/vsrc_life: Fix mix of declarations and statements

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-04-09 11:05:43 +02:00
parent df4fca2163
commit 0773f67395

View File

@ -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);