Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
libvpx
Commits
e542627b
Commit
e542627b
authored
Dec 14, 2011
by
John Koleszar
Committed by
Gerrit Code Review
Dec 14, 2011
Browse files
Merge "fix: active_worst_quality could be set above 127"
parents
c4aeff94
f8b431c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vp8/encoder/ratectrl.c
vp8/encoder/ratectrl.c
+2
-0
No files found.
vp8/encoder/ratectrl.c
View file @
e542627b
...
@@ -940,6 +940,8 @@ static void calc_pframe_target_size(VP8_COMP *cpi)
...
@@ -940,6 +940,8 @@ static void calc_pframe_target_size(VP8_COMP *cpi)
if
(
cpi
->
active_worst_quality
<=
cpi
->
active_best_quality
)
if
(
cpi
->
active_worst_quality
<=
cpi
->
active_best_quality
)
cpi
->
active_worst_quality
=
cpi
->
active_best_quality
+
1
;
cpi
->
active_worst_quality
=
cpi
->
active_best_quality
+
1
;
if
(
cpi
->
active_worst_quality
>
127
)
cpi
->
active_worst_quality
=
127
;
}
}
// Unbuffered mode (eg. video conferencing)
// Unbuffered mode (eg. video conferencing)
else
else
...
...
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