summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2016-06-16 08:57:29 -0700
committerYaowu Xu <yaowu@google.com>2016-06-16 11:25:21 -0700
commit0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3 (patch)
tree4252f8cac97e9dc8df1bab2e0d0252c950cecee3 /test
parent159dd0cc395e1be12c28d994af0dbd4407448e01 (diff)
downloadlibvpx-0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3.tar
libvpx-0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3.tar.gz
libvpx-0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3.tar.bz2
libvpx-0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3.zip
Fix ubsan warning: test/datarate_test.cc
BUG=webm:1219 Change-Id: I48470a885cd64a60636a982cd68165c41a702306
Diffstat (limited to 'test')
-rw-r--r--test/datarate_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/datarate_test.cc b/test/datarate_test.cc
index 3941e16fc..2f1db9c64 100644
--- a/test/datarate_test.cc
+++ b/test/datarate_test.cc
@@ -90,7 +90,7 @@ class DatarateTestLarge : public ::libvpx_test::EncoderTest,
<< pkt->data.frame.pts;
}
- const size_t frame_size_in_bits = pkt->data.frame.sz * 8;
+ const int64_t frame_size_in_bits = pkt->data.frame.sz * 8;
// Subtract from the buffer the bits associated with a played back frame.
bits_in_buffer_model_ -= frame_size_in_bits;