summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-09-23 23:12:19 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-09-24 10:11:45 +0300
commit4342d5a61dd3ecff928637d59e78349a5f253e80 (patch)
tree37a0db6b7e2463dfc0d38edf9c1190d92258095d
parent924a4fc5ecdc79718dd1bc612093a3a9d72f926d (diff)
videoscale Use stride instead of width in more places
-rw-r--r--gst/videoscale/vs_4tap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/videoscale/vs_4tap.c b/gst/videoscale/vs_4tap.c
index b0c887ba5..c653a78ff 100644
--- a/gst/videoscale/vs_4tap.c
+++ b/gst/videoscale/vs_4tap.c
@@ -234,10 +234,10 @@ vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
}
}
- t0 = tmpbuf + (CLAMP (j - 1, 0, src->height - 1) & 3) * dest->width;
- t1 = tmpbuf + (CLAMP (j, 0, src->height - 1) & 3) * dest->width;
- t2 = tmpbuf + (CLAMP (j + 1, 0, src->height - 1) & 3) * dest->width;
- t3 = tmpbuf + (CLAMP (j + 2, 0, src->height - 1) & 3) * dest->width;
+ t0 = tmpbuf + (CLAMP (j - 1, 0, src->height - 1) & 3) * dest->stride;
+ t1 = tmpbuf + (CLAMP (j, 0, src->height - 1) & 3) * dest->stride;
+ t2 = tmpbuf + (CLAMP (j + 1, 0, src->height - 1) & 3) * dest->stride;
+ t3 = tmpbuf + (CLAMP (j + 2, 0, src->height - 1) & 3) * dest->stride;
vs_scanline_merge_4tap_Y (dest->pixels + i * dest->stride,
t0, t1, t2, t3, dest->width, yacc & 0xffff);