libwebm: handle EOF in ParseNext
Change-Id: I1d93fca0c6ad259e76b79bdba8bb0debdd96bd94
This commit is contained in:
parent
31b2d8689c
commit
dc8bdb3389
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user