mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-10-04 11:26:44 -04:00
Let copyIntoRasterWithParams() handle null param.
(cherry picked from commit b34b26e08c
)
This commit is contained in:
@@ -560,12 +560,7 @@ final class WebPImageReader extends ImageReaderBase {
|
||||
|
||||
// Copy into destination raster
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user