mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
avfilter/vf_waveform: abort early if there are no components to show
This commit is contained in:
parent
d94d252731
commit
22d6d91649
@ -3025,6 +3025,9 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
comp++;
|
comp++;
|
||||||
}
|
}
|
||||||
s->acomp = comp;
|
s->acomp = comp;
|
||||||
|
if (s->acomp == 0)
|
||||||
|
return AVERROR(EINVAL);
|
||||||
|
|
||||||
s->odesc = av_pix_fmt_desc_get(outlink->format);
|
s->odesc = av_pix_fmt_desc_get(outlink->format);
|
||||||
s->dcomp = s->odesc->nb_components;
|
s->dcomp = s->odesc->nb_components;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user