summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Rakesh Kumar <rakesh.kumar@ittiam.com> 2022-11-08 13:45:40 +0530
committer Rakesh Kumar <rakesh.kumar@ittiam.com> 2022-11-20 05:44:38 +0000
commit0d30ebcac259df313916b5a7b96add38070c2a7e (patch)
tree6b9ccb639a2a48ac910fc1f181b91d75289428c3 /api/api.go
parente3e6fa1eccf5bd78bb722908d6360e88f53e9868 (diff)
Fix how ExifInterface creates VP8X chunks for WebP files
The current code reads alpha into an int, doesn't shift it back to the least-significant-bit, and then shifts that value 4 more bits before writing to the VP8X 'flags' byte. This results in setting the MSB of the flags byte, which is a reserved bit that must always be zero, resulting in an invalid file. VP8X part of WebP spec: https://developers.google.com/speed/webp/docs/riff_container#extended_file_format Test: ExifInterfaceTest (after removing the suppression for this bug) Bug: 253622642 Change-Id: I42469a479c94442eb395124c4eac174bd9ab6e09
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions