* 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:
John Hurliman
2010-08-04 22:14:23 +00:00
parent 984c1c6e4d
commit 9adcfa8570

View File

@@ -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)