diff --git a/libheif/codecs/uncompressed/unc_boxes.cc b/libheif/codecs/uncompressed/unc_boxes.cc index 6a249c2b67..e9b91394c5 100644 --- a/libheif/codecs/uncompressed/unc_boxes.cc +++ b/libheif/codecs/uncompressed/unc_boxes.cc @@ -95,7 +95,7 @@ bool is_predefined_component_type(uint16_t type) { // check whether the component type can be mapped to heif_uncompressed_component_type and we have a name defined for // it in sNames_uncompressed_component_type. - return (type >= 0 && type <= component_type_max_valid); + return type <= component_type_max_valid; } static std::map sNames_uncompressed_component_type{