From 5adff2e65aa999b9471a00465f37b1edc9bb7900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 23 Sep 2014 23:12:19 +0300 Subject: [PATCH] videoscale Use stride instead of width in more places --- gst/videoscale/vs_4tap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/videoscale/vs_4tap.c b/gst/videoscale/vs_4tap.c index 493c71ef4b..344c34ca1d 100644 --- a/gst/videoscale/vs_4tap.c +++ b/gst/videoscale/vs_4tap.c @@ -366,10 +366,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);