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