mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 12:35:29 -04:00
#707 WebP: Fix Alpha support the correct way...
(cherry picked from commit cee2663f06a2a66a8bd072e1d78ad102c77ec638)
This commit is contained in:
parent
5d623cce9f
commit
7e7aaa293e
@ -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