mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
#707 WebP: Fix Alpha support the correct way...
This commit is contained in:
parent
8f44cfc43c
commit
cee2663f06
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user