From 25b8385cffe05529b5f79cb4e9b19fc3bb71f9dc Mon Sep 17 00:00:00 2001 From: kimvde Date: Wed, 26 Jun 2024 07:37:58 -0700 Subject: [PATCH] Fix Javadoc of VideoSink.setStreamOffsetAndAdjustmentUs PiperOrigin-RevId: 646942034 --- .../exoplayer/video/MediaCodecVideoRenderer.java | 2 +- .../androidx/media3/exoplayer/video/VideoSink.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/MediaCodecVideoRenderer.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/MediaCodecVideoRenderer.java index 07038b3be4..b56dde3df6 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/MediaCodecVideoRenderer.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/MediaCodecVideoRenderer.java @@ -1460,7 +1460,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer /** * Returns the timestamp that is added to the buffer presentation time (the player decoding - * position) to the frame presentation time, in microseconds. + * position) to get the frame presentation time, in microseconds. */ protected long getBufferTimestampAdjustmentUs() { return -startPositionUs; diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java index 091281fe94..8a563c4eb4 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java @@ -192,12 +192,12 @@ public interface VideoSink { void setPendingVideoEffects(List videoEffects); /** - * Sets the stream offset and buffer time adjustment, in microseconds. + * Sets the stream offset and buffer time adjustment. * - * @param streamOffsetUs The offset that is added to the video frames presentation timestamps from - * the player. - * @param bufferTimestampAdjustmentUs The timestamp adjustment to convert the player position to - * the frame presentation timestamp. + * @param streamOffsetUs The offset that is added to the buffer presentation timestamps by the + * player, in microseconds. + * @param bufferTimestampAdjustmentUs The timestamp adjustment to add to the buffer presentation + * timestamps to convert them to frame presentation timestamps, in microseconds. */ void setStreamOffsetAndAdjustmentUs(long streamOffsetUs, long bufferTimestampAdjustmentUs);