shithub: libvpx

Download patch

ref: 0cb7f545ad07e8a1852a05c7b07c4d4e6d4690d3
parent: 159dd0cc395e1be12c28d994af0dbd4407448e01
author: Yaowu Xu <[email protected]>
date: Thu Jun 16 04:57:29 EDT 2016

Fix ubsan warning: test/datarate_test.cc

BUG=webm:1219

Change-Id: I48470a885cd64a60636a982cd68165c41a702306

--- a/test/datarate_test.cc
+++ b/test/datarate_test.cc
@@ -90,7 +90,7 @@
           << 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;