opj_t1_dec_clnpass(): remove useless test in the runlen decoding path (of the non...
[openjpeg.git] / src / lib / openjp2 / t1.c
index 89a7ff85d1ee0e7f3df3c832783d57e9ba659291..a2c5dc6a0a060d1092fb082a8f6fd0b4e4fb0b76 100644 (file)
@@ -1236,7 +1236,7 @@ static void opj_t1_enc_clnpass(
                                        runlen = (runlen << 1) | opj_mqc_decode(mqc); \
                                        flags2 += (OPJ_UINT32)runlen * flags_stride; \
                                        data2 += (OPJ_UINT32)runlen * w; \
-                                       for (j = (OPJ_UINT32)runlen; j < 4 && j < h; ++j) { \
+                                       for (j = (OPJ_UINT32)runlen; j < 4; ++j) { \
                                                flags2 += flags_stride; \
                                                if (j == (OPJ_UINT32)runlen) { \
                                                        opj_t1_dec_clnpass_step_partial(t1, flags2, colflags2, data2, oneplushalf, j); \