Commit 22d6d916 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_waveform: abort early if there are no components to show

parent d94d2527
......@@ -3025,6 +3025,9 @@ static int config_output(AVFilterLink *outlink)
comp++;
}
s->acomp = comp;
if (s->acomp == 0)
return AVERROR(EINVAL);
s->odesc = av_pix_fmt_desc_get(outlink->format);
s->dcomp = s->odesc->nb_components;
......
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