projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d94d252
)
avfilter/vf_waveform: abort early if there are no components to show
author
Paul B Mahol
<onemda@gmail.com>
Wed, 24 Oct 2018 16:30:38 +0000
(18:30 +0200)
committer
Paul B Mahol
<onemda@gmail.com>
Wed, 24 Oct 2018 16:33:52 +0000
(18:33 +0200)
libavfilter/vf_waveform.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_waveform.c
b/libavfilter/vf_waveform.c
index
b4661e0
..
8033628
100644
(file)
--- 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;