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
cd510ea8
Commit
cd510ea8
authored
Feb 20, 2014
by
Marco Paniconi
Committed by
Gerrit Code Review
Feb 20, 2014
Browse files
Merge "vpx_temporal_scalable_patterns: set rc_target_bitrate correct."
parents
cde6b50c
8f69ce2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/vpx_temporal_scalable_patterns.c
View file @
cd510ea8
...
...
@@ -516,9 +516,6 @@ int main(int argc, char **argv) {
// Disable automatic keyframe placement.
cfg
.
kf_min_dist
=
cfg
.
kf_max_dist
=
3000
;
// Default setting for bitrate: used in special case of 1 layer (case 0).
cfg
.
rc_target_bitrate
=
cfg
.
ts_target_bitrate
[
0
];
set_temporal_layer_pattern
(
layering_mode
,
&
cfg
,
layer_flags
,
...
...
@@ -526,6 +523,10 @@ int main(int argc, char **argv) {
set_rate_control_metrics
(
&
rc
,
&
cfg
);
// Target bandwidth for the whole stream.
// Set to ts_target_bitrate for highest layer (total bitrate).
cfg
.
rc_target_bitrate
=
cfg
.
ts_target_bitrate
[
cfg
.
ts_number_layers
-
1
];
// Open input file.
if
(
!
(
infile
=
fopen
(
argv
[
1
],
"rb"
)))
{
die
(
"Failed to open %s for reading"
,
argv
[
1
]);
...
...
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