Skip to content

Commit

Permalink
Add support for official webp file from Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
msuiche committed Dec 22, 2023
1 parent 92f338e commit 7e8d257
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ pub fn scan_webp_vp8l_file(path: &path::Path) -> Result<ScanResultStatus> {
// Color Cache
let mut color_cache_bits = 0;
if reader.read_bit().unwrap() != 0 {
color_cache_bits = reader.read_bit().unwrap();
color_cache_bits = reader.read_bits(4).unwrap();
// info!("color_cache_bits = 0x{:x}", color_cache_bits);
}

Expand Down
Binary file added tests/samples/replicatevalue_poc.not_.webp
Binary file not shown.

0 comments on commit 7e8d257

Please sign in to comment.