mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
avfilter/vsrc_life: Fix mix of declarations and statements
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
df4fca2163
commit
0773f67395
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user