libwebm: handle EOF in ParseNext

Change-Id: I1d93fca0c6ad259e76b79bdba8bb0debdd96bd94
This commit is contained in:
matthewjheaney 2011-03-07 22:40:00 -05:00
parent 31b2d8689c
commit dc8bdb3389

View File

@ -4153,10 +4153,10 @@ long Segment::DoParseNext(
for (;;)
{
if ((total >= 0) && (pos >= total))
break;
return 1; //EOF
if ((segment_stop >= 0) && (pos >= segment_stop))
break;
return 1; //EOF
if ((pos + 1) > avail)
{