fixed a bug in codec/convert.c::imagetobmp

This commit is contained in:
Freeimage 2006-02-04 18:39:46 +00:00
parent 5e0948c142
commit f31d963a64
2 changed files with 18 additions and 15 deletions

View File

@ -5,6 +5,9 @@ What's New for OpenJPEG
! : changed ! : changed
+ : added + : added
February 04, 2006
* [galt] fixed a bug in codec/convert.c::imagetobmp
February 01, 2006 February 01, 2006
! [Herve Drolon] changed function definitions of INT and FIX modules to 'inline' ! [Herve Drolon] changed function definitions of INT and FIX modules to 'inline'
+ [Herve Drolon] added a VERSION resource to the DLL version of OpenJPEG + [Herve Drolon] added a VERSION resource to the DLL version of OpenJPEG

View File

@ -596,7 +596,6 @@ int imagetobmp(opj_image_t * image, char *outfile) {
fprintf(fdest, "%c%c%c%c", (7834) & 0xff, ((7834) >> 8) & 0xff, ((7834) >> 16) & 0xff, ((7834) >> 24) & 0xff); fprintf(fdest, "%c%c%c%c", (7834) & 0xff, ((7834) >> 8) & 0xff, ((7834) >> 16) & 0xff, ((7834) >> 24) & 0xff);
fprintf(fdest, "%c%c%c%c", (256) & 0xff, ((256) >> 8) & 0xff, ((256) >> 16) & 0xff, ((256) >> 24) & 0xff); fprintf(fdest, "%c%c%c%c", (256) & 0xff, ((256) >> 8) & 0xff, ((256) >> 16) & 0xff, ((256) >> 24) & 0xff);
fprintf(fdest, "%c%c%c%c", (256) & 0xff, ((256) >> 8) & 0xff, ((256) >> 16) & 0xff, ((256) >> 24) & 0xff); fprintf(fdest, "%c%c%c%c", (256) & 0xff, ((256) >> 8) & 0xff, ((256) >> 16) & 0xff, ((256) >> 24) & 0xff);
}
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
fprintf(fdest, "%c%c%c%c", i, i, i, 0); fprintf(fdest, "%c%c%c%c", i, i, i, 0);
@ -614,6 +613,7 @@ int imagetobmp(opj_image_t * image, char *outfile) {
} }
} }
fclose(fdest); fclose(fdest);
}
return 0; return 0;
} }