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:
parent
0380840348
commit
f8de2fc8eb
3
CHANGES
3
CHANGES
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue