]> granicus.if.org Git - libvpx/commitdiff
Fix ubsan warning: test/datarate_test.cc
authorYaowu Xu <yaowu@google.com>
Thu, 16 Jun 2016 15:57:29 +0000 (08:57 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 16 Jun 2016 18:25:21 +0000 (11:25 -0700)
BUG=webm:1219

Change-Id: I48470a885cd64a60636a982cd68165c41a702306

test/datarate_test.cc

index 3941e16fc6744fcfc64e6a8cd22198e08815eb73..2f1db9c6475cae28bd8394d1c7c713d3f436f749 100644 (file)
@@ -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;