Commit c23a9e21 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Prevent dividing by 0 when target-bitrate is 0.

Change-Id: I05b7fb378b6b0c5f263e7839f96ba6830ee34fd2
parent b19b16cf
......@@ -88,6 +88,9 @@ void update_rate_histogram(struct rate_hist *hist,
if (now < cfg->rc_buf_initial_sz)
return;
if (!cfg->rc_target_bitrate)
return;
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