#707 WebP: Fix Alpha support the correct way...

(cherry picked from commit cee2663f06a2a66a8bd072e1d78ad102c77ec638)
This commit is contained in:
Harald Kuhr 2022-10-20 16:09:02 +02:00
parent 5d623cce9f
commit 7e7aaa293e

View File

@ -513,8 +513,8 @@ final class WebPImageReader extends ImageReaderBase {
private void readAlpha(BufferedImage destination, ImageReadParam param, final int width, final int height) throws IOException { private void readAlpha(BufferedImage destination, ImageReadParam param, final int width, final int height) throws IOException {
int compression = (int) lsbBitReader.readBits(2); int compression = (int) lsbBitReader.readBits(2);
int filtering = (int) lsbBitReader.readBits(2); int filtering = (int) lsbBitReader.readBits(2);
int reserved = (int) lsbBitReader.readBits(2);
int preProcessing = (int) lsbBitReader.readBits(2); int preProcessing = (int) lsbBitReader.readBits(2);
int reserved = (int) lsbBitReader.readBits(2);
if (reserved != 0) { if (reserved != 0) {
// Spec says SHOULD be 0 // Spec says SHOULD be 0