Skip to content

Commit

Permalink
fix compiler type check
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk authored and 1div0 committed May 14, 2021
1 parent c8fdf6f commit ea0e3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/heif_avif.cc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ bool heif::fill_av1C_configuration_from_stream(Box_av1C::configuration* out_conf
break;
}
else if (header_info.has_size) {
if (header_info.size > std::numeric_limits<int>::max()) {
if (header_info.size > (uint64_t)std::numeric_limits<int>::max()) {
return false;
}

Expand Down

0 comments on commit ea0e3f0

Please sign in to comment.