diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-11-18 08:42:57 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-11-18 08:42:57 +0000 |
| commit | e7e1ec6e841c80cfc56fda58e7abeefc1f568658 (patch) | |
| tree | 9cba72023dfb0de327f84922972dbcc13e2af245 /applications/codec | |
| parent | ff3c441023de46b0a551cc1f89f2d15b313a1f85 (diff) | |
[trunk] WIP: fix bug with windows platform and j2k_to_image
Diffstat (limited to 'applications/codec')
| -rw-r--r-- | applications/codec/j2k_to_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/codec/j2k_to_image.c b/applications/codec/j2k_to_image.c index da39b25f..c893567f 100644 --- a/applications/codec/j2k_to_image.c +++ b/applications/codec/j2k_to_image.c @@ -269,6 +269,7 @@ static int infile_format(const char *fname) const char *s, *magic_s; int ext_format, magic_format; unsigned char buf[12]; + unsigned int l_nb_read; reader = fopen(fname, "rb"); @@ -276,7 +277,7 @@ static int infile_format(const char *fname) return -1; memset(buf, 0, 12); - unsigned int l_nb_read = fread(buf, 1, 12, reader); + l_nb_read = fread(buf, 1, 12, reader); fclose(reader); if (l_nb_read != 12) return -1; |
