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
c3f7bb16
Commit
c3f7bb16
authored
Feb 26, 2015
by
Marco
Browse files
Fix arithmetic overflow warnings.
Change-Id: Ib85b5bc135aa0907a76b8c74faafe577e27d014f
parent
e2b4ef13
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_aq_cyclicrefresh.c
View file @
c3f7bb16
...
...
@@ -368,9 +368,11 @@ void vp9_cyclic_refresh_setup(VP9_COMP *const cpi) {
cr
->
time_for_refresh
=
0
;
// Set rate threshold to some multiple (set to 2 for now) of the target
// rate (target is given by sb64_target_rate and scaled by 256).
cr
->
thresh_rate_sb
=
(
rc
->
sb64_target_rate
<<
8
)
<<
1
;
cr
->
thresh_rate_sb
=
((
int64_t
)
(
rc
->
sb64_target_rate
)
<<
8
)
<<
1
;
// Distortion threshold, quadratic in Q, scale factor to be adjusted.
cr
->
thresh_dist_sb
=
(
int
)(
q
*
q
)
<<
2
;
// q will not exceed 457, so (q * q) is within 32bit; see:
// vp9_convert_qindex_to_q(), vp9_ac_quant(), ac_qlookup*[].
cr
->
thresh_dist_sb
=
((
int64_t
)(
q
*
q
))
<<
2
;
cr
->
motion_thresh
=
32
;
// Set up segmentation.
// Clear down the segment map.
...
...
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