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
rav1e
Commits
37ac909f
Commit
37ac909f
authored
Jun 15, 2019
by
Luca Barbato
Committed by
Luca Barbato
Jun 15, 2019
Browse files
Fix the value unwrapping
parent
4e0a97c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/common.rs
View file @
37ac909f
...
...
@@ -451,7 +451,7 @@ fn parse_config(matches: &ArgMatches<'_>) -> EncoderConfig {
};
cfg
.quantizer
=
quantizer
;
cfg
.min_quantizer
=
matches
.value_of
(
"MINQP"
)
.unwrap
(
)
.parse
()
.unwrap
_or
(
0
);
cfg
.min_quantizer
=
matches
.value_of
(
"MINQP"
)
.unwrap
_or
(
"0"
)
.parse
()
.unwrap
(
);
cfg
.bitrate
=
bitrate
.checked_mul
(
1000
)
.expect
(
"Bitrate too high"
);
cfg
.reservoir_frame_delay
=
matches
.value_of
(
"RESERVOIR_FRAME_DELAY"
)
.map
(|
reservior_frame_delay
|
reservior_frame_delay
.parse
()
.unwrap
());
cfg
.show_psnr
=
matches
.is_present
(
"PSNR"
);
...
...
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