]> granicus.if.org Git - libvpx/commitdiff
Fix compile warnings with enable-internal-stats flag.
authorJerome Jiang <jianj@google.com>
Thu, 6 Apr 2017 20:07:53 +0000 (13:07 -0700)
committerJerome Jiang <jianj@google.com>
Thu, 6 Apr 2017 21:00:01 +0000 (14:00 -0700)
BUG=webm:1402

Change-Id: Ibe9ecb1b559a4b989f6ccedbd097e369f6edde1e

vp8/encoder/onyx_if.c

index 0a1e1bbc7342c4f6767474a1a54bb01cc5741907..64d177581ede6bef3c633ef1291b7a4361172a93 100644 (file)
@@ -2090,11 +2090,7 @@ void vp8_remove_compressor(VP8_COMP **ptr) {
       double time_encoded =
           (cpi->last_end_time_stamp_seen - cpi->first_time_stamp_ever) /
           10000000.000;
-      double total_encode_time =
-          (cpi->time_receive_data + cpi->time_compress_data) / 1000.000;
       double dr = (double)cpi->bytes * 8.0 / 1000.0 / time_encoded;
-      const double target_rate = (double)cpi->oxcf.target_bandwidth / 1000;
-      const double rate_err = ((100.0 * (dr - target_rate)) / target_rate);
 
       if (cpi->b_calculate_psnr) {
         if (cpi->oxcf.number_of_layers > 1) {