Skip to content

Commit

Permalink
fix compilation when unci support is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Sep 23, 2024
1 parent 721ef0d commit 2769974
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,13 @@ Result<std::shared_ptr<ImageItem_uncompressed>> HeifContext::add_unci_item(const
const struct heif_encoding_options* encoding_options,
const std::shared_ptr<const HeifPixelImage>& prototype)
{
#if WITH_UNCOMPRESSED_CODEC
return ImageItem_uncompressed::add_unci_item(this, parameters, encoding_options, prototype);
#else
return {heif_error_Unsupported_feature,
heif_suberror_Unspecified,
"support for uncompressed images has been disabled"};
#endif
}


Expand Down

0 comments on commit 2769974

Please sign in to comment.