Skip to content

Commit

Permalink
remove unnecessary range check
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 20, 2024
1 parent 9ab817b commit 0d69d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/codecs/uncompressed/unc_boxes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<heif_uncompressed_component_type, const char*> sNames_uncompressed_component_type{
Expand Down

0 comments on commit 0d69d92

Please sign in to comment.