Skip to content

Fix produced duration may wrong on Android#85

Merged
ruccho merged 1 commit intomainfrom
feature/fix_android_wrong_duration
Jan 5, 2026
Merged

Fix produced duration may wrong on Android#85
ruccho merged 1 commit intomainfrom
feature/fix_android_wrong_duration

Conversation

@ruccho
Copy link
Collaborator

@ruccho ruccho commented Jan 5, 2026

Closes #83
This PR fixes an issue where videos of incorrect duration were generated for streams with out-of-order timestamps. Android (MediaCodec) may generate a frame with a timestamp of 0 at the end of a stream, and BoundedEncodedFrameBuffer could not handle such frames correctly.

@ruccho ruccho requested review from hkmt-mmy and qua-iy January 5, 2026 04:43
@ruccho ruccho merged commit 64211b4 into main Jan 5, 2026
@ruccho ruccho deleted the feature/fix_android_wrong_duration branch January 5, 2026 05:46
@ruccho ruccho removed the request for review from hkmt-mmy January 5, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] RealtimeInstantReplaySession.StopAndExportAsync ignores duration parameter - exports entire recording

2 participants