[trunk] WIP: fix bug with windows platform and j2k_dump
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -5,6 +5,9 @@ What's New for OpenJPEG
|
|||||||
! : changed
|
! : changed
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
|
November 21, 2011
|
||||||
|
* [mickael] WIP: fix bug with windows platform and j2k_dump
|
||||||
|
|
||||||
November 18, 2011
|
November 18, 2011
|
||||||
* [mickael] WIP: fix bug with windows platform and j2k_to_image
|
* [mickael] WIP: fix bug with windows platform and j2k_to_image
|
||||||
|
|
||||||
|
|||||||
@@ -220,6 +220,7 @@ static int infile_format(const char *fname)
|
|||||||
const char *s, *magic_s;
|
const char *s, *magic_s;
|
||||||
int ext_format, magic_format;
|
int ext_format, magic_format;
|
||||||
unsigned char buf[12];
|
unsigned char buf[12];
|
||||||
|
unsigned int l_nb_read;
|
||||||
|
|
||||||
reader = fopen(fname, "rb");
|
reader = fopen(fname, "rb");
|
||||||
|
|
||||||
@@ -227,7 +228,7 @@ static int infile_format(const char *fname)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
memset(buf, 0, 12);
|
memset(buf, 0, 12);
|
||||||
unsigned int l_nb_read = fread(buf, 1, 12, reader);
|
l_nb_read = fread(buf, 1, 12, reader);
|
||||||
fclose(reader);
|
fclose(reader);
|
||||||
if (l_nb_read != 12)
|
if (l_nb_read != 12)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user