Remove the code to restore current output position
Muxer never uses latest output position but always writes to a specific location, so restoring its position does not add any value. PiperOrigin-RevId: 642996941
This commit is contained in:
parent
206d2ce8b8
commit
a39a7f06cf
@ -322,7 +322,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateMdatSize(long mdatSize) throws IOException {
|
private void updateMdatSize(long mdatSize) throws IOException {
|
||||||
long currentOutputPosition = output.position();
|
|
||||||
// The mdat box has a 64-bit length, so skip the box type (4 bytes) and the default box length
|
// The mdat box has a 64-bit length, so skip the box type (4 bytes) and the default box length
|
||||||
// (4 bytes).
|
// (4 bytes).
|
||||||
output.position(mdatStart + BOX_HEADER_SIZE);
|
output.position(mdatStart + BOX_HEADER_SIZE);
|
||||||
@ -330,8 +329,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||||||
mdatSizeBuffer.putLong(mdatSize);
|
mdatSizeBuffer.putLong(mdatSize);
|
||||||
mdatSizeBuffer.flip();
|
mdatSizeBuffer.flip();
|
||||||
output.write(mdatSizeBuffer);
|
output.write(mdatSizeBuffer);
|
||||||
// Restore output position
|
|
||||||
output.position(currentOutputPosition);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void doInterleave() throws IOException {
|
private void doInterleave() throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user