mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix 1 ErrorProneStyle finding
PiperOrigin-RevId: 538469993
(cherry picked from commit e7f7e86f3e)
This commit is contained in:
parent
f7245a5ff2
commit
ade2990503
1 changed files with 1 additions and 1 deletions
|
|
@ -1093,7 +1093,6 @@ public final class DefaultAudioSink implements AudioSink {
|
||||||
&& (outputBuffer == null || !outputBuffer.hasRemaining());
|
&& (outputBuffer == null || !outputBuffer.hasRemaining());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("ReferenceEquality")
|
|
||||||
/**
|
/**
|
||||||
* Writes the provided buffer to the audio track.
|
* Writes the provided buffer to the audio track.
|
||||||
*
|
*
|
||||||
|
|
@ -1101,6 +1100,7 @@ public final class DefaultAudioSink implements AudioSink {
|
||||||
* @param avSyncPresentationTimeUs The tunneling AV sync presentation time for the buffer, or
|
* @param avSyncPresentationTimeUs The tunneling AV sync presentation time for the buffer, or
|
||||||
* {@link C#TIME_END_OF_SOURCE} when draining remaining buffers at the end of the stream.
|
* {@link C#TIME_END_OF_SOURCE} when draining remaining buffers at the end of the stream.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("ReferenceEquality")
|
||||||
private void writeBuffer(ByteBuffer buffer, long avSyncPresentationTimeUs) throws WriteException {
|
private void writeBuffer(ByteBuffer buffer, long avSyncPresentationTimeUs) throws WriteException {
|
||||||
if (!buffer.hasRemaining()) {
|
if (!buffer.hasRemaining()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue