Let copyIntoRasterWithParams() handle null param.

(cherry picked from commit b34b26e08cf33e41ed47eb21716c13dd889d44e6)
This commit is contained in:
tc-wleite 2023-03-15 16:53:27 -03:00 committed by Harald Kuhr
parent a085a454e0
commit c7c8e3372b

View File

@ -560,12 +560,7 @@ final class WebPImageReader extends ImageReaderBase {
// Copy into destination raster // Copy into destination raster
WritableRaster dstRaster = destination.getAlphaRaster(); WritableRaster dstRaster = destination.getAlphaRaster();
if (param == null) { VP8LDecoder.copyIntoRasterWithParams(alphaRaster, dstRaster, param);
dstRaster.setRect(alphaRaster);
}
else {
VP8LDecoder.copyIntoRasterWithParams(alphaRaster, dstRaster, param);
}
} }
private int getPredictorAlpha(WritableRaster alphaRaster, int filtering, int y, int x) { private int getPredictorAlpha(WritableRaster alphaRaster, int filtering, int y, int x) {