mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
Let copyIntoRasterWithParams() handle null param.
(cherry picked from commit b34b26e08cf33e41ed47eb21716c13dd889d44e6)
This commit is contained in:
parent
a085a454e0
commit
c7c8e3372b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user