From: Even Rouault Date: Sat, 22 Sep 2018 21:47:56 +0000 (+0200) Subject: opj_jp2_apply_pclr(): remove useless assert that can trigger on some files (fixes... X-Git-Tag: v2.3.1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fc09e50e557fa6af4c099b9c6d36bb1071ee1ed;p=openjpeg opj_jp2_apply_pclr(): remove useless assert that can trigger on some files (fixes #1125) --- 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) {