videoscale: Fix off-by-one error in previous commit

Fix for 7c0b702e.  It helps to get your j+1's right.
This commit is contained in:
David Schleef 2011-04-24 18:45:40 -07:00
parent 7c0b702e14
commit fc31f355ea

View file

@ -121,8 +121,8 @@ vs_image_scale_linear_RGBA (const VSImage * dest, const VSImage * src,
y1++; y1++;
} }
if (j >= y1) { if (j >= y1) {
gst_videoscale_orc_resample_bilinear_u32 (LINE (j), gst_videoscale_orc_resample_bilinear_u32 (LINE (j + 1),
src->pixels + j * src->stride, 0, x_increment, dest->width); src->pixels + (j + 1) * src->stride, 0, x_increment, dest->width);
y1++; y1++;
} }
orc_merge_linear_u8 (dest->pixels + i * dest->stride, orc_merge_linear_u8 (dest->pixels + i * dest->stride,