Skip to content

Commit

Permalink
do not enforce iinf box version<2 as there are many images in circula…
Browse files Browse the repository at this point in the history
…tion with a wrong version field
  • Loading branch information
farindk committed Jul 10, 2024
1 parent 8a48bf8 commit 537d668
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libheif/box.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,8 @@ Error Box_iinf::parse(BitstreamRange& range)
{
parse_full_box_header(range);

if (get_version() > 1) {
// TODO: there are several images in circulation that have an iinf version=2. We should not enforce this with a hard error.
if (false && get_version() > 1) {
return unsupported_version_error("iinf");
}

Expand Down Expand Up @@ -3285,8 +3286,8 @@ std::string Box_ster::dump(Indent& indent) const
sstr << Box::dump(indent);

sstr << indent << "group id: " << group_id << "\n"
<< indent << "left image ID " << entity_ids[0] << "\n"
<< indent << "right image ID " << entity_ids[1] << "\n";
<< indent << "left image ID: " << entity_ids[0] << "\n"
<< indent << "right image ID: " << entity_ids[1] << "\n";

return sstr.str();
}
Expand Down

0 comments on commit 537d668

Please sign in to comment.