Commit fc31f355 authored by David Schleef's avatar David Schleef

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

Fix for 7c0b702e.  It helps to get your j+1's right.
parent 7c0b702e
...@@ -121,8 +121,8 @@ vs_image_scale_linear_RGBA (const VSImage * dest, const VSImage * src, ...@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment