Change test in opj_tcd_makelayer
[openjpeg.git] / src / lib / openjp2 / tcd.c
index 32db260b124dd9856657e14000e70ea83671ee6b..2fccff1c9c78d8b1dbb173bee63b248a2b66f876 100644 (file)
@@ -268,7 +268,7 @@ void opj_tcd_makelayer( opj_tcd_t *tcd,
                                                                         n = passno + 1;
                                                                 continue;
                                                         }
-                                                        if (thresh - (dd / dr) <= DBL_EPSILON) /* do not rely on float equality, check with DBL_EPSILON margin */
+                                                        if (thresh - (dd / dr) < DBL_EPSILON) /* do not rely on float equality, check with DBL_EPSILON margin */
                                                                 n = passno + 1;
                                                 }