diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-08 18:10:48 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-08 18:10:48 +0300 |
commit | 5d8e836d0ec3bcaabf5bc2020210a1bc61975922 (patch) | |
tree | 8ff87745055d571431ded709218556357b18341c /libavfilter/vf_deband.c | |
parent | 151aa2ebff514a9d150a2d3a7b92be1dcc46df36 (diff) |
Replace all remaining occurances of step/depth_minus1 and offset_plus1
Diffstat (limited to 'libavfilter/vf_deband.c')
-rw-r--r-- | libavfilter/vf_deband.c | 10 |
1 files changed, 5 insertions, 5 deletions
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)); |