diff options
| author | jhurst <jhurst@cinecert.com> | 2006-09-23 23:47:17 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-09-23 23:47:17 +0000 |
| commit | 72e5392ca11c06a1ac0732c71f86df0d9a712ce3 (patch) | |
| tree | 25c9f223d62700409fbe883865dc5a54677726a0 /src/JP2K_Codestream_Parser.cpp | |
| parent | 1cd511e77b968ba068c59f4771cb67810e4ba4c4 (diff) | |
1.1.9 release a
Diffstat (limited to 'src/JP2K_Codestream_Parser.cpp')
| -rwxr-xr-x | src/JP2K_Codestream_Parser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/JP2K_Codestream_Parser.cpp b/src/JP2K_Codestream_Parser.cpp index 4211653..32a5316 100755 --- a/src/JP2K_Codestream_Parser.cpp +++ b/src/JP2K_Codestream_Parser.cpp @@ -90,6 +90,12 @@ public: while ( p < end_p && ASDCP_SUCCESS(result) ) { result = GetNextMarker(&p, NextMarker); + + if ( ASDCP_FAILURE(result) ) + { + result = RESULT_RAW_ESS; + break; + } #if 0 fprintf(stderr, "%s Length: %u\n", GetMarkerString(NextMarker.m_Type), NextMarker.m_DataSize); |
