diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 42afcf4ab4..eb3b87a56c 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -494,7 +494,7 @@ void ff_formats_changeref(AVFilterFormats **oldref, AVFilterFormats **newref) } #define SET_COMMON_FORMATS(ctx, fmts, in_fmts, out_fmts, ref, list) \ -{ \ +if (fmts) { \ int count = 0, i; \ \ for (i = 0; i < ctx->nb_inputs; i++) { \