From 5d8e836d0ec3bcaabf5bc2020210a1bc61975922 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 8 Sep 2015 17:10:48 +0200 Subject: Replace all remaining occurances of step/depth_minus1 and offset_plus1 --- libavfilter/vf_deband.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libavfilter/vf_deband.c') diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c index 5de3db171d..36897218fe 100644 --- a/libavfilter/vf_deband.c +++ b/libavfilter/vf_deband.c @@ -223,12 +223,12 @@ static int config_input(AVFilterLink *inlink) s->planewidth[1] = s->planewidth[2] = FF_CEIL_RSHIFT(inlink->w, desc->log2_chroma_w); s->planewidth[0] = s->planewidth[3] = inlink->w; - s->deband = desc->comp[0].depth_minus1 > 7 ? deband_16_c : deband_8_c; + s->deband = desc->comp[0].depth > 8 ? deband_16_c : deband_8_c; - s->thr[0] = ((1 << (desc->comp[0].depth_minus1 + 1)) - 1) * s->threshold[0]; - s->thr[1] = ((1 << (desc->comp[1].depth_minus1 + 1)) - 1) * s->threshold[1]; - s->thr[2] = ((1 << (desc->comp[2].depth_minus1 + 1)) - 1) * s->threshold[2]; - s->thr[3] = ((1 << (desc->comp[3].depth_minus1 + 1)) - 1) * s->threshold[3]; + s->thr[0] = ((1 << desc->comp[0].depth) - 1) * s->threshold[0]; + s->thr[1] = ((1 << desc->comp[1].depth) - 1) * s->threshold[1]; + s->thr[2] = ((1 << desc->comp[2].depth) - 1) * s->threshold[2]; + s->thr[3] = ((1 << desc->comp[3].depth) - 1) * s->threshold[3]; s->x_pos = av_malloc(s->planewidth[0] * s->planeheight[0] * sizeof(*s->x_pos)); s->y_pos = av_malloc(s->planewidth[0] * s->planeheight[0] * sizeof(*s->y_pos)); -- cgit v1.2.3