Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
4205b51d
Commit
4205b51d
authored
May 22, 2014
by
Tom Finegan
Browse files
vp9_ratectrl.c: Fix MSVC warnings.
Change-Id: I4bd635949240880ced5f581c24e981ccd0374e40
parent
59948cc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_ratectrl.c
View file @
4205b51d
...
...
@@ -612,9 +612,9 @@ static int get_active_cq_level(const RATE_CONTROL *rc,
static
const
double
cq_adjust_threshold
=
0
.
5
;
int
active_cq_level
=
oxcf
->
cq_level
;
if
(
oxcf
->
rc_mode
==
RC_MODE_CONSTRAINED_QUALITY
)
{
const
double
x
=
rc
->
total_actual_bits
/
rc
->
total_target_bits
;
const
double
x
=
(
double
)
rc
->
total_actual_bits
/
rc
->
total_target_bits
;
if
(
x
<
cq_adjust_threshold
)
{
active_cq_level
=
active_cq_level
*
x
/
cq_adjust_threshold
;
active_cq_level
=
(
int
)(
active_cq_level
*
x
/
cq_adjust_threshold
)
;
}
}
return
active_cq_level
;
...
...
Write
Preview
Markdown
is supported
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