summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay NM <sanjay.nm@samsung.com>2014-09-19 12:31:49 +0530
committerSebastian Dröge <sebastian@centricular.com>2014-09-24 10:11:39 +0300
commit924a4fc5ecdc79718dd1bc612093a3a9d72f926d (patch)
tree5c68832c88bc5ed9969e2d2d08c7bdb3cca2f05a
parent4ef7abbad6ba21cf3b85b4759a62e745d5368001 (diff)
downloadgstreamer-plugins-base-924a4fc5ecdc79718dd1bc612093a3a9d72f926d.tar.gz
videoscale: Use width instead of stride in buffer offset calculation
https://bugzilla.gnome.org/show_bug.cgi?id=736944
-rw-r--r--gst/videoscale/vs_4tap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videoscale/vs_4tap.c b/gst/videoscale/vs_4tap.c
index 7097ad7d3..b0c887ba5 100644
--- a/gst/videoscale/vs_4tap.c
+++ b/gst/videoscale/vs_4tap.c
@@ -213,7 +213,7 @@ vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
k = 0;
for (i = 0; i < 4; i++) {
xacc = 0;
- vs_scanline_resample_4tap_Y (tmpbuf + i * dest->width,
+ vs_scanline_resample_4tap_Y (tmpbuf + i * dest->stride,
src->pixels + CLAMP (i, 0, src->height - 1) * src->stride, dest->width,
src->width, &xacc, x_increment);
}
@@ -228,7 +228,7 @@ vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
k++;
if (k + 3 < src->height) {
xacc = 0;
- vs_scanline_resample_4tap_Y (tmpbuf + ((k + 3) & 3) * dest->width,
+ vs_scanline_resample_4tap_Y (tmpbuf + ((k + 3) & 3) * dest->stride,
src->pixels + (k + 3) * src->stride,
dest->width, src->width, &xacc, x_increment);
}