Skip to content

Commit

Permalink
Fix avis
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhuai committed Dec 21, 2023
1 parent 8f94e1f commit 0c6cb7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imageinfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,12 @@ static const std::vector<IIDetector> s_ii_detectors = { // NOLINT(cert-err58-cpp
/**
* Major Brand
*
* AVIF: "avif"
* AVIF: "avif", "avis"
* HEIF: "mif1", "msf1"
* HEIC: "heic", "heix", "hevc", "hevx"
*
*/
if (!buffer.cmpAnyOf(8, 4, {"avif", "mif1", "msf1", "heic", "heix", "hevc", "hevx"})) {
if (!buffer.cmpAnyOf(8, 4, {"avif", "avis", "mif1", "msf1", "heic", "heix", "hevc", "hevx"})) {
return false;
}

Expand Down
Binary file added images/valid/avif/sample3.avif
Binary file not shown.
1 change: 1 addition & 0 deletions tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ int main() {
{
ASSET_II(IMAGES_DIRECTORY "valid/avif/sample.avif", II_ERR_OK, II_FORMAT_AVIF, 123l, 456l);
ASSET_II(IMAGES_DIRECTORY "valid/avif/sample2.avif", II_ERR_OK, II_FORMAT_AVIF, 800l, 533l);
ASSET_II(IMAGES_DIRECTORY "valid/avif/sample3.avif", II_ERR_OK, II_FORMAT_AVIF, 1280l, 720l);
}

{
Expand Down

0 comments on commit 0c6cb7d

Please sign in to comment.