* Fix for a regression in the previous commit (LIBOMV-861)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3407 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -599,7 +599,7 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
try
|
||||
{
|
||||
short eocCheck = 0;
|
||||
if (in_Renamed.Pos + 2 < in_Renamed.length())
|
||||
if (in_Renamed.Pos + sizeof(short) <= in_Renamed.length())
|
||||
eocCheck = in_Renamed.readShort();
|
||||
|
||||
if (!rateReached && !isPsotEqualsZero && eocCheck != CSJ2K.j2k.codestream.Markers.EOC)
|
||||
|
||||
Reference in New Issue
Block a user