to follow last version of conformance data about component separator for pgx file, we changed - to _ separator even if nb component = 1

This commit is contained in:
Mickael Savinaud 2011-07-21 14:56:29 +00:00
parent 0380840348
commit f8de2fc8eb
2 changed files with 7 additions and 4 deletions

View File

@ -5,6 +5,9 @@ What's New for OpenJPEG
! : changed
+ : added
July 21, 2011
! [mickael] to follow last version of conformance data about component separator for pgx file, we changed - to _ separator even if nb component = 1
July 21, 2011
! [mickael] removed unused warning configuration message

View File

@ -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);