Fix IndexSeekMap.getTimeUs() javadoc

PiperOrigin-RevId: 660376007
This commit is contained in:
rohks 2024-08-07 07:09:04 -07:00 committed by Copybara-Service
parent 9bc199f107
commit bef134a093

View file

@ -109,9 +109,8 @@ public final class IndexSeekMap implements SeekMap {
* Maps a position (byte offset) to a corresponding sample timestamp. * Maps a position (byte offset) to a corresponding sample timestamp.
* *
* @param position A seek position (byte offset) relative to the start of the stream. * @param position A seek position (byte offset) relative to the start of the stream.
* @return The corresponding timestamp of the sample at or before the given position, in * @return The corresponding timestamp of the seek point at or before the given position, in
* microseconds, or the timestamp of the last available sample in the seek map if the position * microseconds, or {@link C#TIME_UNSET} if no seek points exist.
* is past the last seek point added, or {@link C#TIME_UNSET} if no seek points exist.
*/ */
public long getTimeUs(long position) { public long getTimeUs(long position) {
if (timesUs.size() == 0) { if (timesUs.size() == 0) {