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
|
! : changed
|
||||||
+ : added
|
+ : 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
|
July 21, 2011
|
||||||
! [mickael] removed unused warning configuration message
|
! [mickael] removed unused warning configuration message
|
||||||
|
|
||||||
|
|
|
@ -1200,11 +1200,11 @@ int imagetopgx(opj_image_t * image, const char *outfile) {
|
||||||
name = (char*)malloc(total+1);
|
name = (char*)malloc(total+1);
|
||||||
}
|
}
|
||||||
strncpy(name, outfile, dotpos);
|
strncpy(name, outfile, dotpos);
|
||||||
if (image->numcomps > 1) {
|
//if (image->numcomps > 1) {
|
||||||
sprintf(name+dotpos, "-%d.pgx", compno);
|
sprintf(name+dotpos, "_%d.pgx", compno);
|
||||||
} else {
|
/*} else {
|
||||||
strcpy(name+dotpos, ".pgx");
|
strcpy(name+dotpos, ".pgx");
|
||||||
}
|
}*/
|
||||||
fdest = fopen(name, "wb");
|
fdest = fopen(name, "wb");
|
||||||
if (!fdest) {
|
if (!fdest) {
|
||||||
fprintf(stderr, "ERROR -> failed to open %s for writing\n", name);
|
fprintf(stderr, "ERROR -> failed to open %s for writing\n", name);
|
||||||
|
|
Loading…
Reference in New Issue