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

This commit is contained in:
Debargha Mukherjee 2015-06-09 17:03:21 +00:00 committed by Gerrit Code Review
commit 2fd31bbba7

View File

@ -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 */