Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: source/libvpx/rate_hist.c

Issue 1217053002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/libs.mk ('k') | source/libvpx/test/android/Android.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « source/libvpx/libs.mk ('k') | source/libvpx/test/android/Android.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698