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

设置est->cur_bitrate,是否需要同时将bwe和delay码率也重置呢? #56

Open
adcen0107 opened this issue May 9, 2022 · 0 comments

Comments

@adcen0107
Copy link
Collaborator

void sender_estimation_set_send_bitrate(sender_estimation_t* est, uint32_t send_bitrate)
{
razor_debug("sender_estimation_set_send_bitrate, bitrate = %u\n", send_bitrate);
est->bwe_incoming = est->delay_base_bitrate = 0; //是否需要添加这个,否则est->cur_bitrate仍旧受旧bwe,delay速率影响
cap_bitrate_to_threshold(est, GET_SYS_MS(), send_bitrate);

/*清空历史最小记录*/
est->end_index = est->begin_index = 0;

}

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

No branches or pull requests

1 participant