Add comment explaining FlacBinarySearchSeeker output

PiperOrigin-RevId: 288464154
This commit is contained in:
kimvde 2020-01-07 11:03:42 +00:00 committed by Oliver Woodman
parent 20e7684c6c
commit d1839f141a

View File

@ -126,6 +126,8 @@ import java.nio.ByteBuffer;
if (targetSampleInLastFrame) {
// We are holding the target frame in outputFrameHolder. Set its presentation time now.
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());
} else if (nextFrameSampleIndex <= targetSampleIndex) {
return TimestampSearchResult.underestimatedResult(