Commit 2e0ac145 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'd1afd3e1'

* commit 'd1afd3e1':
  vf_format: check input validity

See: ee16e0caMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e493814d d1afd3e1
......@@ -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;
......
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