mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
DefaultOggSeeker small optimization.
skipToNextPage() isn't necessary anymore. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125147444
This commit is contained in:
parent
4fe6e5d755
commit
53cc88e2dc
1 changed files with 0 additions and 1 deletions
|
|
@ -324,7 +324,6 @@ import java.io.IOException;
|
||||||
//@VisibleForTesting
|
//@VisibleForTesting
|
||||||
long skipToPageOfGranule(ExtractorInput input, long targetGranule, long currentGranule)
|
long skipToPageOfGranule(ExtractorInput input, long targetGranule, long currentGranule)
|
||||||
throws IOException, InterruptedException {
|
throws IOException, InterruptedException {
|
||||||
skipToNextPage(input);
|
|
||||||
pageHeader.populate(input, false);
|
pageHeader.populate(input, false);
|
||||||
while (pageHeader.granulePosition < targetGranule) {
|
while (pageHeader.granulePosition < targetGranule) {
|
||||||
input.skipFully(pageHeader.headerSize + pageHeader.bodySize);
|
input.skipFully(pageHeader.headerSize + pageHeader.bodySize);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue