Commit 2fd31bbb authored by Debargha Mukherjee's avatar Debargha Mukherjee Committed by Gerrit Code Review
Browse files

Merge "Prevent dividing by 0 when target-bitrate is 0."

parents 4a28da58 c23a9e21
......@@ -88,6 +88,9 @@ void update_rate_histogram(struct rate_hist *hist,
if (now < cfg->rc_buf_initial_sz)
if (!cfg->rc_target_bitrate)
then = now;
/* Sum the size over the past rc_buf_sz ms */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment