diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-07-21 14:56:29 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-07-21 14:56:29 +0000 |
| commit | f8de2fc8eb78d52480bcf7755acdcd961ef3aa39 (patch) | |
| tree | 18d23281ecd1dc707b94aeedcd688d23375de136 /applications/codec | |
| parent | 0380840348d378217c417e5f310ba5885079fe8d (diff) | |
to follow last version of conformance data about component separator for pgx file, we changed - to _ separator even if nb component = 1
Diffstat (limited to 'applications/codec')
| -rw-r--r-- | applications/codec/convert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/codec/convert.c b/applications/codec/convert.c index f3170a72..8ca54a4f 100644 --- a/applications/codec/convert.c +++ b/applications/codec/convert.c @@ -1200,11 +1200,11 @@ int imagetopgx(opj_image_t * image, const char *outfile) { name = (char*)malloc(total+1); } strncpy(name, outfile, dotpos); - if (image->numcomps > 1) { - sprintf(name+dotpos, "-%d.pgx", compno); - } else { + //if (image->numcomps > 1) { + sprintf(name+dotpos, "_%d.pgx", compno); + /*} else { strcpy(name+dotpos, ".pgx"); - } + }*/ fdest = fopen(name, "wb"); if (!fdest) { fprintf(stderr, "ERROR -> failed to open %s for writing\n", name); |
