Skip to content

Commit

Permalink
fix compilation if we have neither zlib nor brotli
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 25, 2024
1 parent c38dff8 commit 7529eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libheif/image-items/unc_image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,10 @@ Result<std::shared_ptr<ImageItem_uncompressed>> ImageItem_uncompressed::add_unci
auto cmpC = std::make_shared<Box_cmpC>();
cmpC->set_compressed_unit_type(heif_cmpC_compressed_unit_type_image_tile);

if (false) {
}
#if HAVE_ZLIB
if (parameters->compression == heif_metadata_compression_deflate) {
else if (parameters->compression == heif_metadata_compression_deflate) {
cmpC->set_compression_type(fourcc("defl"));
}
else if (parameters->compression == heif_metadata_compression_zlib) {
Expand Down

0 comments on commit 7529eb8

Please sign in to comment.