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
cc550634
Commit
cc550634
authored
Sep 06, 2017
by
Yaowu Xu
Browse files
Prevent division-by-zero
Change-Id: Id606669875ef1dcb163ff7dec619dae6110d9047
parent
3e579a60
Changes
1
Show whitespace changes
Inline
Side-by-side
av1/encoder/firstpass.c
View file @
cc550634
...
...
@@ -2794,6 +2794,7 @@ static void find_next_key_frame(AV1_COMP *cpi, FIRSTPASS_STATS *this_frame) {
boost_score
+=
(
decay_accumulator
*
frame_boost
);
}
}
if
(
loop_decay_counter
>
0
)
av_decay_accumulator
/=
(
double
)
loop_decay_counter
;
reset_fpf_position
(
twopass
,
start_position
);
...
...
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