diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c index adc6c17d..15d48910 100644 --- a/codec/image_to_j2k.c +++ b/codec/image_to_j2k.c @@ -955,7 +955,7 @@ int main(int argc, char **argv) /* Remove the temporary files */ /* -------------------------- */ - if (cp.decod_format != PGX_CFMT) { /* PNM PGM PPM or BMP */ + if (cp.decod_format != PGX_DFMT) { /* PNM PGM PPM or BMP */ for (i = 0; i < img.numcomps; i++) { char tmp; sprintf(&tmp, "Compo%d", i);