Skip to content
GitLab
Menu
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
7aef9790
Commit
7aef9790
authored
Jun 03, 2016
by
James Zern
Committed by
Gerrit Code Review
Jun 03, 2016
Browse files
Merge "ivfdec: tolerate invalid framerates"
parents
a32f3415
e5e2932c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ivfdec.c
View file @
7aef9790
...
...
@@ -23,7 +23,7 @@ static void fix_framerate(int *num, int *den) {
// we can guess the framerate using only the timebase in this
// case. Other files would require reading ahead to guess the
// timebase, like we do for webm.
if
(
*
num
<
1000
)
{
if
(
*
den
>
0
&&
*
num
>
0
&&
*
num
<
1000
)
{
// Correct for the factor of 2 applied to the timebase in the encoder.
if
(
*
num
&
1
)
*
den
*=
2
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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