diff --git a/src/dec/webp_dec.c b/src/dec/webp_dec.c index 2c694699..873d2318 100644 --- a/src/dec/webp_dec.c +++ b/src/dec/webp_dec.c @@ -799,7 +799,7 @@ int WebPIoInitFromOptions(const WebPDecoderOptions* const options, int x = 0, y = 0, w = W, h = H; // Cropping - io->use_cropping = (options != NULL) && (options->use_cropping > 0); + io->use_cropping = (options != NULL) && options->use_cropping; if (io->use_cropping) { w = options->crop_width; h = options->crop_height;