From 8fc09e50e557fa6af4c099b9c6d36bb1071ee1ed Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 22 Sep 2018 23:47:56 +0200 Subject: [PATCH] opj_jp2_apply_pclr(): remove useless assert that can trigger on some files (fixes #1125) --- src/lib/openjp2/jp2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/openjp2/jp2.c b/src/lib/openjp2/jp2.c index f15f45ae..180a416b 100644 --- a/src/lib/openjp2/jp2.c +++ b/src/lib/openjp2/jp2.c @@ -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) {