From fc31f355eac764d8a9d1518f334df4e2b8e7c407 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 24 Apr 2011 18:45:40 -0700 Subject: [PATCH] videoscale: Fix off-by-one error in previous commit Fix for 7c0b702e. It helps to get your j+1's right. --- gst/videoscale/vs_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videoscale/vs_image.c b/gst/videoscale/vs_image.c index e2368fe6a6..c28b0d8ff3 100644 --- a/gst/videoscale/vs_image.c +++ b/gst/videoscale/vs_image.c @@ -121,8 +121,8 @@ vs_image_scale_linear_RGBA (const VSImage * dest, const VSImage * src, y1++; } if (j >= y1) { - gst_videoscale_orc_resample_bilinear_u32 (LINE (j), - src->pixels + j * src->stride, 0, x_increment, dest->width); + gst_videoscale_orc_resample_bilinear_u32 (LINE (j + 1), + src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width); y1++; } orc_merge_linear_u8 (dest->pixels + i * dest->stride,