Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
77318b0a
Commit
77318b0a
authored
Jun 16, 2016
by
Yaowu Xu
Committed by
Gerrit Code Review
Jun 16, 2016
Browse files
Merge "Fix ubsan warning: vp9_cx_iface.c"
parents
8870756a
1387f555
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/vp9_cx_iface.c
View file @
77318b0a
...
...
@@ -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
,
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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment