Skip to content

Commit

Permalink
#707 WebP: Fix Alpha support the correct way...
Browse files Browse the repository at this point in the history
(cherry picked from commit cee2663)
  • Loading branch information
haraldk committed Oct 20, 2022
1 parent 5d623cc commit 7e7aaa2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ private void readVP8Extended(BufferedImage destination, ImageReadParam param, lo
private void readAlpha(BufferedImage destination, ImageReadParam param, final int width, final int height) throws IOException {
int compression = (int) lsbBitReader.readBits(2);
int filtering = (int) lsbBitReader.readBits(2);
int reserved = (int) lsbBitReader.readBits(2);
int preProcessing = (int) lsbBitReader.readBits(2);
int reserved = (int) lsbBitReader.readBits(2);

if (reserved != 0) {
// Spec says SHOULD be 0
Expand Down

0 comments on commit 7e7aaa2

Please sign in to comment.