aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_waveform.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-09-08 17:10:48 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-09-08 17:10:48 +0200
commit5d8e836d0ec3bcaabf5bc2020210a1bc61975922 (patch)
tree8ff87745055d571431ded709218556357b18341c /libavfilter/vf_waveform.c
parent151aa2ebff514a9d150a2d3a7b92be1dcc46df36 (diff)
downloadffmpeg-5d8e836d0ec3bcaabf5bc2020210a1bc61975922.tar.gz
Replace all remaining occurances of step/depth_minus1 and offset_plus1
Diffstat (limited to 'libavfilter/vf_waveform.c')
-rw-r--r--libavfilter/vf_waveform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c
index c6be694962..b2468c11cc 100644
--- a/libavfilter/vf_waveform.c
+++ b/libavfilter/vf_waveform.c
@@ -1172,7 +1172,7 @@ static int config_input(AVFilterLink *inlink)
s->desc = av_pix_fmt_desc_get(inlink->format);
s->ncomp = s->desc->nb_components;
- s->bits = s->desc->comp[0].depth_minus1 + 1;
+ s->bits = s->desc->comp[0].depth;
s->max = 1 << s->bits;
s->intensity = s->fintensity * (s->max - 1);