Skip to content

Commit

Permalink
write 'tili' images with version 0 instead of 1 to match proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Nov 4, 2024
1 parent 76cfcdc commit c02768a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libheif/image-items/tiled.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void Box_tilC::init_heif_tiled_image_parameters(heif_tiled_image_parameters& par

void Box_tilC::derive_box_version()
{
set_version(1);
set_version(0);

uint8_t flags = 0;

Expand Down Expand Up @@ -187,7 +187,8 @@ Error Box_tilC::parse(BitstreamRange& range, const heif_security_limits* limits)
{
parse_full_box_header(range);

if (get_version() != 1) {
// Note: actually, we should allow 0 only, but there are a few images around that use version 1.
if (get_version() > 1) {
std::stringstream sstr;
sstr << "'tili' image version " << ((int) get_version()) << " is not implemented yet";

Expand Down

0 comments on commit c02768a

Please sign in to comment.