shithub: libvpx

Download patch

ref: 77318b0aecddad53390b3766b1f51902c20dd642
parent: 8870756ac6821349bbf755c00f020f5f7a5e5224
parent: 1387f5550fd7b5f1d20062afb201cda903090814
author: Yaowu Xu <[email protected]>
date: Thu Jun 16 12:44:35 EDT 2016

Merge "Fix ubsan warning: vp9_cx_iface.c"

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -978,7 +978,7 @@
 
 static int64_t ticks_to_timebase_units(const vpx_rational_t *timebase,
                                        int64_t n) {
-  const int64_t round = TICKS_PER_SEC * timebase->num / 2 - 1;
+  const int64_t round = (int64_t)TICKS_PER_SEC * timebase->num / 2 - 1;
   return (n * timebase->den + round) / timebase->num / TICKS_PER_SEC;
 }