Skip to content

Commit

Permalink
cannot use std::cmp_greater() yet
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 7, 2024
1 parent 0e01eaa commit a89f28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/plugins/decoder_dav1d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ struct heif_error dav1d_new_decoder(void** dec)

dav1d_default_settings(&decoder->settings);

if (std::cmp_greater(heif_get_global_security_limits()->max_image_size_pixels, std::numeric_limits<unsigned int>::max())) {
if (heif_get_global_security_limits()->max_image_size_pixels > std::numeric_limits<unsigned int>::max()) {
decoder->settings.frame_size_limit = 0;
}
else {
Expand Down

0 comments on commit a89f28f

Please sign in to comment.