mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 20:15:28 -04:00
Param can be null in readAlpha(). Copy alphaRaster to dst in this case.
(cherry picked from commit 0a2efb9eacfc32f126b51f93654203f6952df9c7)
This commit is contained in:
parent
6312c65622
commit
7e584cdab4
@ -560,7 +560,12 @@ final class WebPImageReader extends ImageReaderBase {
|
||||
|
||||
// Copy into destination raster
|
||||
WritableRaster dstRaster = destination.getAlphaRaster();
|
||||
VP8LDecoder.copyIntoRasterWithParams(alphaRaster, dstRaster, param);
|
||||
if (param == null) {
|
||||
dstRaster.setRect(alphaRaster);
|
||||
}
|
||||
else {
|
||||
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