Prevent dividing by 0 when target-bitrate is 0.
Change-Id: I05b7fb378b6b0c5f263e7839f96ba6830ee34fd2
This commit is contained in:
Родитель
b19b16cfa1
Коммит
c23a9e218c
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче