Merge "Prevent dividing by 0 when target-bitrate is 0."
This commit is contained in:
commit
2fd31bbba7
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user