Commit cfcab4c5 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_overlay: silence warning: X may be used uninitialized in this function

Also ensure that format is valid in query_formats
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3c14c82b
......@@ -195,6 +195,8 @@ static int query_formats(AVFilterContext *ctx)
main_formats = ff_make_format_list(main_pix_fmts_rgb);
overlay_formats = ff_make_format_list(overlay_pix_fmts_rgb);
break;
default:
av_assert0(0);
}
ff_formats_ref(main_formats, &ctx->inputs [MAIN ]->out_formats);
......
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