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
31d3f43e
Commit
31d3f43e
authored
Jan 13, 2014
by
Yaowu Xu
Browse files
fix a div by zero issue
Change-Id: I091dfaa0ed5b9672eedd46d6097469d0802e24ef
parent
7c52a3a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_firstpass.c
View file @
31d3f43e
...
...
@@ -1825,7 +1825,8 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
// If the frame that is to be boosted is simpler than the average for
// the gf/arf group then use an alternative calculation
// based on the error score of the frame itself
if
(
mod_frame_err
<
gf_group_err
/
(
double
)
cpi
->
rc
.
baseline_gf_interval
)
{
if
(
cpi
->
rc
.
baseline_gf_interval
<
1
||
mod_frame_err
<
gf_group_err
/
(
double
)
cpi
->
rc
.
baseline_gf_interval
)
{
double
alt_gf_grp_bits
=
(
double
)
cpi
->
twopass
.
kf_group_bits
*
(
mod_frame_err
*
(
double
)
cpi
->
rc
.
baseline_gf_interval
)
/
...
...
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