opj_jp2_apply_pclr(): remove useless assert that can trigger on some files (fixes...
authorEven Rouault <even.rouault@spatialys.com>
Sat, 22 Sep 2018 21:47:56 +0000 (23:47 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Sat, 22 Sep 2018 21:47:56 +0000 (23:47 +0200)
src/lib/openjp2/jp2.c

index f15f45ae7718dea4e20855e60bf86b6406a1b9c2..180a416b7efd4d7e56a5c5c821eb6f9081913792 100644 (file)
@@ -1106,7 +1106,6 @@ static OPJ_BOOL opj_jp2_apply_pclr(opj_image_t *image,
 
         /* Direct use: */
         if (cmap[i].mtyp == 0) {
-            assert(cmp == 0);
             dst = new_comps[i].data;
             assert(dst);
             for (j = 0; j < max; ++j) {