summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_deband.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-12-08 21:21:15 +0100
committerPaul B Mahol <onemda@gmail.com>2016-12-08 21:29:58 +0100
commita251149833505e6097c745ec97f76611ad293a3d (patch)
tree3b0372c8e12b73fe267f0cb0cc3895e968d38002 /libavfilter/vf_deband.c
parent1296f844955e513d19051c962656f829479d4fb9 (diff)
downloadffmpeg-streaming-a251149833505e6097c745ec97f76611ad293a3d.zip
ffmpeg-streaming-a251149833505e6097c745ec97f76611ad293a3d.tar.gz
avfilter/vf_deband: fix silly mistakes
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_deband.c')
-rw-r--r--libavfilter/vf_deband.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c
index 3a1cfb8..fbf27ea 100644
--- a/libavfilter/vf_deband.c
+++ b/libavfilter/vf_deband.c
@@ -129,7 +129,7 @@ static int deband_8_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
const int h = s->planeheight[p] - 1;
for (y = start; y < end; y++) {
- const int pos = y * s->planeheight[0];
+ const int pos = y * s->planewidth[0];
for (x = 0; x < s->planewidth[p]; x++) {
const int x_pos = s->x_pos[pos + x];
@@ -178,7 +178,7 @@ static int deband_16_c(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
const int h = s->planeheight[p] - 1;
for (y = start; y < end; y++) {
- const int pos = y * s->planeheight[0];
+ const int pos = y * s->planewidth[0];
for (x = 0; x < s->planewidth[p]; x++) {
const int x_pos = s->x_pos[pos + x];
@@ -241,8 +241,8 @@ static int config_input(AVFilterLink *inlink)
const float dir = direction < 0 ? -direction : r * direction;
const int dist = range < 0 ? -range : r * range;
- s->x_pos[y * s->planeheight[0] + x] = cosf(dir) * dist;
- s->y_pos[y * s->planeheight[0] + x] = sinf(dir) * dist;
+ s->x_pos[y * s->planewidth[0] + x] = cosf(dir) * dist;
+ s->y_pos[y * s->planewidth[0] + x] = sinf(dir) * dist;
}
}
OpenPOWER on IntegriCloud