diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-10-24 18:30:38 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-10-24 18:33:52 +0200 |
commit | 22d6d916494498cb6a7a1f8abb5d73f0030b4f78 (patch) | |
tree | d3e069f49e6d6546d1a57502ab45e30656817576 /libavfilter/vf_waveform.c | |
parent | d94d2527317dc0e22bc3e1d135a0362ba796bf95 (diff) |
avfilter/vf_waveform: abort early if there are no components to show
Diffstat (limited to 'libavfilter/vf_waveform.c')
-rw-r--r-- | libavfilter/vf_waveform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c index b4661e021f..8033628407 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.c @@ -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; |