Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d1839f14
authored
Jan 07, 2020
by
kimvde
Committed by
Oliver Woodman
Jan 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add comment explaining FlacBinarySearchSeeker output
PiperOrigin-RevId: 288464154
parent
20e7684c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/FlacBinarySearchSeeker.java
extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/FlacBinarySearchSeeker.java
View file @
d1839f14
...
@@ -126,6 +126,8 @@ import java.nio.ByteBuffer;
...
@@ -126,6 +126,8 @@ import java.nio.ByteBuffer;
if
(
targetSampleInLastFrame
)
{
if
(
targetSampleInLastFrame
)
{
// We are holding the target frame in outputFrameHolder. Set its presentation time now.
// We are holding the target frame in outputFrameHolder. Set its presentation time now.
outputFrameHolder
.
timeUs
=
decoderJni
.
getLastFrameTimestamp
();
outputFrameHolder
.
timeUs
=
decoderJni
.
getLastFrameTimestamp
();
// The input position is passed even though it does not indicate the frame containing the
// target sample because the extractor must continue to read from this position.
return
TimestampSearchResult
.
targetFoundResult
(
input
.
getPosition
());
return
TimestampSearchResult
.
targetFoundResult
(
input
.
getPosition
());
}
else
if
(
nextFrameSampleIndex
<=
targetSampleIndex
)
{
}
else
if
(
nextFrameSampleIndex
<=
targetSampleIndex
)
{
return
TimestampSearchResult
.
underestimatedResult
(
return
TimestampSearchResult
.
underestimatedResult
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment