We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ee732a + df49a6f commit f751cb2Copy full SHA for f751cb2
src/video_compress/cmpto_j2k.cpp
@@ -52,6 +52,7 @@
52
#endif // HAVE_CONFIG_H
53
54
#include <cassert>
55
+#include <cfloat>
56
#include <cmath>
57
#include <climits>
58
#include <condition_variable>
@@ -733,7 +734,7 @@ static void usage(bool full) {
733
734
#define ASSIGN_CHECK_VAL(var, str, minval) \
735
do { \
736
const double val = unit_evaluate_dbl(str, false, nullptr); \
- if (std::isnan(val) || val < (minval) || val > UINT_MAX) { \
737
+ if (std::isnan(val) || val < (minval) || val > DBL_MAX) { \
738
LOG(LOG_LEVEL_ERROR) \
739
<< "[J2K] Wrong value " << (str) \
740
<< " for " #var "! Value must be >= " << (minval) \
0 commit comments