summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-04-17 21:57:59 -0700
committerJames Zern <jzern@google.com>2023-04-17 22:09:02 -0700
commit7bdce0887b7e1acd62093cd2315ce0e93e75ba5f (patch)
tree09c0cf30b602e9c1bf775f5f566dc7abd0e54b58
parent27171320f5e36f7b18071bfa1d9616863ca1b4e8 (diff)
downloadlibvpx-7bdce0887b7e1acd62093cd2315ce0e93e75ba5f.tar
libvpx-7bdce0887b7e1acd62093cd2315ce0e93e75ba5f.tar.gz
libvpx-7bdce0887b7e1acd62093cd2315ce0e93e75ba5f.tar.bz2
libvpx-7bdce0887b7e1acd62093cd2315ce0e93e75ba5f.zip
onyx_if: clear -Wshadow warning
with --enable-internal-stats Bug: webm:1793 Change-Id: I9d375e4cb45f78b82afe455f2c7ad2b56e217f7d
-rw-r--r--vp8/encoder/onyx_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index bcf522702..44a02b6dd 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -2109,7 +2109,6 @@ void vp8_remove_compressor(VP8_COMP **comp) {
double time_encoded =
(cpi->last_end_time_stamp_seen - cpi->first_time_stamp_ever) /
10000000.000;
- double dr = (double)cpi->bytes * 8.0 / 1000.0 / time_encoded;
if (cpi->b_calculate_psnr) {
if (cpi->oxcf.number_of_layers > 1) {
@@ -2138,6 +2137,7 @@ void vp8_remove_compressor(VP8_COMP **comp) {
total_psnr2, total_ssim);
}
} else {
+ double dr = (double)cpi->bytes * 8.0 / 1000.0 / time_encoded;
double samples =
3.0 / 2 * cpi->count * cpi->common.Width * cpi->common.Height;
double total_psnr =