mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove TODO for empty samples in muxer
There is no reason to write the empty samples so keep the behaviour same as MediaMuxer PiperOrigin-RevId: 667495861
This commit is contained in:
parent
2b031484fe
commit
52aeffbb3b
1 changed files with 0 additions and 1 deletions
|
|
@ -64,7 +64,6 @@ import java.util.List;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeSampleData(ByteBuffer byteBuffer, BufferInfo bufferInfo) {
|
public void writeSampleData(ByteBuffer byteBuffer, BufferInfo bufferInfo) {
|
||||||
// TODO: b/279931840 - Confirm whether muxer should throw when writing empty samples.
|
|
||||||
// Skip empty samples.
|
// Skip empty samples.
|
||||||
if (bufferInfo.size == 0 || byteBuffer.remaining() == 0) {
|
if (bufferInfo.size == 0 || byteBuffer.remaining() == 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue