Commit e904aafe for libheif
commit e904aafe132b76f4fa0f0b9b8cc646d6af5d449b
Author: Dirk Farin <dirk.farin@gmail.com>
Date: Thu Feb 19 19:27:29 2026 +0100
unci: fix supported bit-depths for complex data-types
diff --git a/libheif/codecs/uncompressed/unc_decoder.cc b/libheif/codecs/uncompressed/unc_decoder.cc
index c9b58744..cce88611 100644
--- a/libheif/codecs/uncompressed/unc_decoder.cc
+++ b/libheif/codecs/uncompressed/unc_decoder.cc
@@ -357,8 +357,8 @@ Error check_hard_limits(const std::shared_ptr<const Box_uncC>& uncC)
break;
case heif_uncompressed_component_format::component_format_complex:
- if (component.component_bit_depth != 32 &&
- component.component_bit_depth != 64) {
+ if (component.component_bit_depth != 64 &&
+ component.component_bit_depth != 128) {
return Error{heif_error_Unsupported_feature, heif_suberror_Unspecified, "Only 2x32 bit and 2x64 bit complex values are supported."};
}
break;