Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick PR #807: [android] Reset frame rate estimator when the stream fps changed (#807) #1062

Merged
merged 1 commit into from
Jul 29, 2023

Commits on Jul 28, 2023

  1. Cherry pick PR youtube#807: [android] Reset frame rate estimator when…

    … the stream fps changed (youtube#807)
    
    Refer to the original PR: youtube#807
    
    When playing a stream, the key operating rate is set to MediaCodec for
    resource planning. It's calculated by the playback rate and the
    estimated fps. While the latter is calculated by the number of
    rendered frames in duration. When the stream fps is changed, the
    estimated fps will be affected by the frames already rendered with the
    old fps and slowly adjusted to the new fps. This may lead to
    insufficient resources prepared for the stream and cause some
    performance issues.
    
    b/290409989
    
    Change-Id: I5126794d0ac98d29fc8405359bcb4f62dc444308
    mingchou committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    261b922 View commit details
    Browse the repository at this point in the history