Skip to content

Commit

Permalink
fix compilation when uncompressed codec is switched off (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Jul 29, 2024
1 parent b06e720 commit 15ff08f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,7 @@ Error HeifContext::Image::get_preferred_decoding_colorspace(heif_colorspace* out
}
*out_chroma = jpeg2000Header.get_chroma_format();
}
#if WITH_UNCOMPRESSED_CODEC
else if (auto uncC = m_heif_context->m_heif_file->get_property<Box_uncC>(id)) {
if (uncC->get_version() == 1) {
// This is the shortform case, no cmpd box, and always some kind of RGB
Expand All @@ -1310,7 +1311,7 @@ Error HeifContext::Image::get_preferred_decoding_colorspace(heif_colorspace* out
UncompressedImageCodec::get_heif_chroma_uncompressed(uncC, cmpd, out_chroma, out_colorspace);
}
}

#endif

return err;
}
Expand Down

0 comments on commit 15ff08f

Please sign in to comment.