shithub: libvpx

Download patch

ref: b9fa9ef693d60254f82426cf5c02223783336223
parent: e334d9fd1b440e3fb9722334da244f502e22e643
parent: e8b818b581b9ab7e9c8f7b1becd753dd4efbdf43
author: Jerome Jiang <jianj@google.com>
date: Tue May 12 12:54:29 EDT 2020

Merge "Don't collect stats if they won't be used"

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -4533,9 +4533,11 @@
   /* Actual bits spent */
   cpi->total_actual_bits += cpi->projected_frame_size;
 
+#if 0 && CONFIG_INTERNAL_STATS
   /* Debug stats */
   cpi->total_target_vs_actual +=
       (cpi->this_frame_target - cpi->projected_frame_size);
+#endif
 
   cpi->buffer_level = cpi->bits_off_target;