aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-09 11:05:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-09 11:40:44 +0200
commit0773f6739538db9cbe2712bfffd4de47639a685e (patch)
tree052e38d3664b2b9b9b3508e7e27a825b4196acda
parentdf4fca21632a58300dea1b60e5b545d6bf34ac0d (diff)
downloadffmpeg-0773f6739538db9cbe2712bfffd4de47639a685e.tar.gz
avfilter/vsrc_life: Fix mix of declarations and statements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vsrc_life.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c
index 20bc56a4dd..47630add7d 100644
--- a/libavfilter/vsrc_life.c
+++ b/libavfilter/vsrc_life.c
@@ -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);