tif_webp.c: fix previous commit that broke scanline decoding

This commit is contained in:
Even Rouault 2018-10-17 23:36:26 +02:00
parent 00a987988c
commit d780c9db3f
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -159,7 +159,7 @@ TWebPDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
buf = WebPIDecGetRGB(sp->psDecoder, &current_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);