mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -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…
x
Reference in New Issue
Block a user