diff options
-rw-r--r-- | gst/videoscale/vs_4tap.c | 4 |
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); } |