diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-02-10 16:22:01 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2005-02-10 16:22:01 +0000 |
| commit | 34a6c13a2d2062fcc18bb5fb4c0b526baf296d7c (patch) | |
| tree | 4fb5f8315ce20d49e1b58fca1be8bf824d2573c5 /codec | |
| parent | 542f06007c7934c1b74e562efd177f49d9a51f09 (diff) | |
Input file format bug fixed (2)
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/image_to_j2k.c | 6 |
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; |
