Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bc5 decoding #2648

Merged
merged 1 commit into from Aug 16, 2017
Merged

Fixed bc5 decoding #2648

merged 1 commit into from Aug 16, 2017

Conversation

ifeherva
Copy link
Contributor

@ifeherva ifeherva commented Aug 3, 2017

BC5 decoding uses only 2 channels instead of 4. The current algorithm did not initialize the RGBA struct which resulted in random values in the output image. This commit should initialize the decoded RGBA struct, thus setting B and A values to default (0).

Changes proposed in this pull request:

  • Initialize target buffer to zero before filling.

BC5 decoding uses only 2 channels instead of 4. The current algorithm did not initialize the RGBA struct which resulted in random values in the output image. This commit should initialize the decoded RGBA struct, thus setting B and A values to default (0).
@jleclanche
Copy link
Contributor

Looks good to merge.

@wiredfool wiredfool merged commit 3b0f183 into python-pillow:master Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants