summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codec/image_to_j2k.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index 15d48910..132f8f88 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -686,7 +686,7 @@ int main(int argc, char **argv)
}
switch (cp.decod_format) {
- case 0:
+ case PGX_DFMT:
if (Tile_arg) {
if (!pgxtoimage
(infile, &img, cp.tdy, subsampling_dx, subsampling_dy, Dim, cp))
@@ -703,14 +703,14 @@ int main(int argc, char **argv)
}
break;
- case 1:
+ case PXM_DFMT:
if (!pnmtoimage(infile, &img, subsampling_dx, subsampling_dy, Dim)) {
fprintf(stderr, " not a pnm file\n");
return 1;
}
break;
- case 2:
+ case BMP_DFMT:
if (!bmptoimage(infile, &img, subsampling_dx, subsampling_dy, Dim)) {
fprintf(stderr, " not a bmp file\n");
return 1;