mirror of
https://github.com/androidx/media.git
synced 2025-05-18 13:09:56 +08:00
Fix END_OF_STREAM transformer timestamp matching previous.
This cause the muxer to fail to stop on older devices/API levels. #minor-release PiperOrigin-RevId: 407309028
This commit is contained in:
parent
d5a87d13b7
commit
0c4f5ebc91
@ -90,6 +90,9 @@
|
||||
* Rename
|
||||
`MediaSessionConnector.QueueNavigator#onCurrentWindowIndexChanged` to
|
||||
`onCurrentMediaItemIndexChanged`.
|
||||
* Transformer:
|
||||
* Avoid sending a duplicate timestamp to the encoder with the end of
|
||||
stream buffer.
|
||||
* Remove deprecated symbols:
|
||||
* Remove `Renderer.VIDEO_SCALING_MODE_*` constants. Use identically named
|
||||
constants in `C` instead.
|
||||
|
@ -316,6 +316,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||
|
||||
private void queueEndOfStreamToEncoder(MediaCodecAdapterWrapper encoder) {
|
||||
checkState(checkNotNull(encoderInputBuffer.data).position() == 0);
|
||||
encoderInputBuffer.timeUs = nextEncoderInputBufferTimeUs;
|
||||
encoderInputBuffer.addFlag(C.BUFFER_FLAG_END_OF_STREAM);
|
||||
encoderInputBuffer.flip();
|
||||
// Queuing EOS should only occur with an empty buffer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user