tif_webp.c: fix previous commit that broke scanline decoding
This commit is contained in:
parent
00a987988c
commit
d780c9db3f
@ -159,7 +159,7 @@ TWebPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
|
||||
buf = WebPIDecGetRGB(sp->psDecoder, ¤t_y, NULL, NULL, &stride);
|
||||
|
||||
if ((buf != NULL) &&
|
||||
(occ == stride * (current_y - sp->last_y))) {
|
||||
(occ <= stride * (current_y - sp->last_y))) {
|
||||
memcpy(op,
|
||||
buf + (sp->last_y * stride),
|
||||
occ);
|
||||
|
Loading…
Reference in New Issue
Block a user