shithub: libvpx

Download patch

ref: 354e70dc786ddc05a797ccd5571739e458c2974d
parent: 1387f5550fd7b5f1d20062afb201cda903090814
author: Yaowu Xu <[email protected]>
date: Thu Jun 16 04:32:18 EDT 2016

Fix ubsan warning: vp8/encoder/onyx_ifc

BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1219

Change-Id: I4362a1cf79fdcb478b29ddbcdf8091c5f5d10645

--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -5222,7 +5222,7 @@
         vp8_second_pass(cpi);
 
     encode_frame_to_data_rate(cpi, size, dest, dest_end, frame_flags);
-    cpi->twopass.bits_left -= 8 * *size;
+    cpi->twopass.bits_left -= 8 * (int)(*size);
 
     if (!cpi->common.refresh_alt_ref_frame)
     {