Let copyIntoRasterWithParams() handle null param.

This commit is contained in:
tc-wleite 2023-03-15 16:53:27 -03:00
parent 993e07ee34
commit b34b26e08c

View File

@ -560,13 +560,8 @@ final class WebPImageReader extends ImageReaderBase {
// Copy into destination raster // Copy into destination raster
WritableRaster dstRaster = destination.getAlphaRaster(); WritableRaster dstRaster = destination.getAlphaRaster();
if (param == null) {
dstRaster.setRect(alphaRaster);
}
else {
VP8LDecoder.copyIntoRasterWithParams(alphaRaster, dstRaster, param); 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) {
switch (filtering) { switch (filtering) {