mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
DefaultOggSeeker: use skipFully() instead skip().
skip() may skip less than what we want here. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124930478
This commit is contained in:
parent
c45a3959b6
commit
e6267cd253
1 changed files with 2 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ import java.io.IOException;
|
|||
start = input.getPosition() + pageSize;
|
||||
startGranule = pageHeader.granulePosition;
|
||||
if (end - start + pageSize < MATCH_BYTE_RANGE) {
|
||||
input.skip(pageSize);
|
||||
input.skipFully(pageSize);
|
||||
return -(startGranule + 2);
|
||||
}
|
||||
}
|
||||
|
|
@ -194,7 +194,7 @@ import java.io.IOException;
|
|||
}
|
||||
|
||||
// position accepted (before target granule and within MATCH_RANGE)
|
||||
input.skip(pageSize);
|
||||
input.skipFully(pageSize);
|
||||
return -(pageHeader.granulePosition + 2);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue