diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 13b41e4663..96cb7fd077 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -60,8 +60,10 @@ static av_cold int init(AVFilterContext *ctx) int i; int ret; - if (!s->pix_fmts) + if (!s->pix_fmts) { + av_log(ctx, AV_LOG_ERROR, "Empty output format string.\n"); return AVERROR(EINVAL); + } /* count the formats */ cur = s->pix_fmts;