Chromium Code Reviews| Index: source/libvpx/rate_hist.c |
| diff --git a/source/libvpx/rate_hist.c b/source/libvpx/rate_hist.c |
| index 1cef19bdd6429decc926bf8c5fe50d0637c6faa9..a77222b16186644caceb6d0ba2c5c08eeee76329 100644 |
| --- a/source/libvpx/rate_hist.c |
| +++ b/source/libvpx/rate_hist.c |
| @@ -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 */ |