mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
videoscale: Use width instead of stride in buffer offset calculation
https://bugzilla.gnome.org/show_bug.cgi?id=736944
This commit is contained in:
parent
5f0aad6f42
commit
db296c5924
1 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,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);
|
||||
}
|
||||
|
@ -360,7 +360,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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue