Merge "Fix ubsan warning: vp9_cx_iface.c"
This commit is contained in:
commit
77318b0aec
@ -978,7 +978,7 @@ static int64_t timebase_units_to_ticks(const vpx_rational_t *timebase,
|
|||||||
|
|
||||||
static int64_t ticks_to_timebase_units(const vpx_rational_t *timebase,
|
static int64_t ticks_to_timebase_units(const vpx_rational_t *timebase,
|
||||||
int64_t n) {
|
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;
|
return (n * timebase->den + round) / timebase->num / TICKS_PER_SEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user