shithub: libvpx

Download patch

ref: 2fd31bbba7d0205d849067a28e7d318fffbee981
parent: 4a28da58434d364337d9a6724e9ae79e0e264bd7
parent: c23a9e218c8d8bbcae2c153d1da5406bbdc24467
author: Debargha Mukherjee <debargha@google.com>
date: Tue Jun 9 13:03:21 EDT 2015

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

--- a/rate_hist.c
+++ b/rate_hist.c
@@ -88,6 +88,9 @@
   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 */