mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
Add note that isLastBuffer is best-effort only
PiperOrigin-RevId: 391952144
This commit is contained in:
parent
557a1833f7
commit
082542c152
@ -1968,7 +1968,9 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||||||
* @param bufferPresentationTimeUs The presentation time of the output buffer in microseconds.
|
* @param bufferPresentationTimeUs The presentation time of the output buffer in microseconds.
|
||||||
* @param isDecodeOnlyBuffer Whether the buffer was marked with {@link C#BUFFER_FLAG_DECODE_ONLY}
|
* @param isDecodeOnlyBuffer Whether the buffer was marked with {@link C#BUFFER_FLAG_DECODE_ONLY}
|
||||||
* by the source.
|
* by the source.
|
||||||
* @param isLastBuffer Whether the buffer is the last sample of the current stream.
|
* @param isLastBuffer Whether the buffer is known to contain the last sample of the current
|
||||||
|
* stream. This flag is set on a best effort basis, and any logic relying on it should degrade
|
||||||
|
* gracefully to handle cases where it's not set.
|
||||||
* @param format The {@link Format} associated with the buffer.
|
* @param format The {@link Format} associated with the buffer.
|
||||||
* @return Whether the output buffer was fully processed (for example, rendered or skipped).
|
* @return Whether the output buffer was fully processed (for example, rendered or skipped).
|
||||||
* @throws ExoPlaybackException If an error occurs processing the output buffer.
|
* @throws ExoPlaybackException If an error occurs processing the output buffer.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user