You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vf_overlay: silence warning: X may be used uninitialized in this function
Also ensure that format is valid in query_formats Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -195,6 +195,8 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
main_formats = ff_make_format_list(main_pix_fmts_rgb);
|
main_formats = ff_make_format_list(main_pix_fmts_rgb);
|
||||||
overlay_formats = ff_make_format_list(overlay_pix_fmts_rgb);
|
overlay_formats = ff_make_format_list(overlay_pix_fmts_rgb);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
av_assert0(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ff_formats_ref(main_formats, &ctx->inputs [MAIN ]->out_formats);
|
ff_formats_ref(main_formats, &ctx->inputs [MAIN ]->out_formats);
|
||||||
|
Reference in New Issue
Block a user