mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add comment explaining FlacBinarySearchSeeker output
PiperOrigin-RevId: 288464154
This commit is contained in:
parent
09ca5c0783
commit
35fbb7f7ca
1 changed files with 2 additions and 0 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue