mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Ignore ByteBuffer position when writing samples in Mp4Muxer
PiperOrigin-RevId: 537814319
This commit is contained in:
parent
74478f2478
commit
997f2be5e5
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||
// Calculate the additional space required.
|
||||
long bytesNeededInMdat = 0L;
|
||||
for (Pair<BufferInfo, ByteBuffer> sample : track.pendingSamples) {
|
||||
bytesNeededInMdat += sample.second.remaining();
|
||||
bytesNeededInMdat += sample.second.limit();
|
||||
}
|
||||
|
||||
// If the required number of bytes doesn't fit in the gap between the actual data and the moov
|
||||
|
|
|
|||
Loading…
Reference in a new issue