summaryrefslogtreecommitdiff
path: root/OPJViewer/source/wxj2kparser.cpp
diff options
context:
space:
mode:
authorGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-29 08:27:03 +0000
committerGiuseppe Baruffa <gbaruffa@users.noreply.github.com>2007-03-29 08:27:03 +0000
commita1fe5809a4760ed2aa64951c596156f48fca393e (patch)
tree68066e08142f30f5e9ad07e24f40d60f779b6bf3 /OPJViewer/source/wxj2kparser.cpp
parent5a3c1ffe7d5b4269d073fa826cba94591c0c3ed5 (diff)
Some coding style adaptations for compiling the OPJViewer GUI under Linux. It compiles, but does not yet display images.
Diffstat (limited to 'OPJViewer/source/wxj2kparser.cpp')
-rw-r--r--OPJViewer/source/wxj2kparser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/OPJViewer/source/wxj2kparser.cpp b/OPJViewer/source/wxj2kparser.cpp
index 98f9fe7c..8401d251 100644
--- a/OPJViewer/source/wxj2kparser.cpp
+++ b/OPJViewer/source/wxj2kparser.cpp
@@ -554,6 +554,8 @@ void OPJParseThread::ParseJ2KFile(wxFile *m_file, wxFileOffset offset, wxFileOff
/////////
case SIZ_VAL:
{
+ int c;
+
if (m_file->Read(twobytes, 2) != 2)
break;
unsigned short int rsiz = STREAM_TO_UINT16(twobytes, 0);
@@ -603,7 +605,7 @@ void OPJParseThread::ParseJ2KFile(wxFile *m_file, wxFileOffset offset, wxFileOff
unsigned char *xrsiz = new unsigned char(csiz);
unsigned char *yrsiz = new unsigned char(csiz);
- for (int c = 0; c < csiz; c++) {
+ for (c = 0; c < csiz; c++) {
if (m_file->Read(&ssiz[c], 1) != 1)
break;