Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2015/04/09 18:05:43... | ... |
@@ -415,6 +415,8 @@ static int query_formats(AVFilterContext *ctx) |
415 | 415 |
{ |
416 | 416 |
LifeContext *life = ctx->priv; |
417 | 417 |
enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_NONE, AV_PIX_FMT_NONE }; |
418 |
+ AVFilterFormats *fmts_list; |
|
419 |
+ |
|
418 | 420 |
if (life->mold || memcmp(life-> life_color, "\xff\xff\xff", 3) |
419 | 421 |
|| memcmp(life->death_color, "\x00\x00\x00", 3)) { |
420 | 422 |
pix_fmts[0] = AV_PIX_FMT_RGB24; |
... | ... |
@@ -424,7 +426,7 @@ static int query_formats(AVFilterContext *ctx) |
424 | 424 |
life->draw = fill_picture_monoblack; |
425 | 425 |
} |
426 | 426 |
|
427 |
- AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts); |
|
427 |
+ fmts_list = ff_make_format_list(pix_fmts); |
|
428 | 428 |
if (!fmts_list) |
429 | 429 |
return AVERROR(ENOMEM); |
430 | 430 |
ff_set_common_formats(ctx, fmts_list); |