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
Yushin Cho
aom-rav1e
Commits
a885e1cb
Commit
a885e1cb
authored
Aug 18, 2014
by
Dmitry Kovalev
Browse files
Removing unnecessary casts to int64_t.
Change-Id: I156419fdf68056759a4cd4206cc829a00025ef78
parent
43a83a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_svc_layercontext.c
View file @
a885e1cb
...
@@ -106,12 +106,9 @@ void vp9_update_layer_context_change_config(VP9_COMP *const cpi,
...
@@ -106,12 +106,9 @@ void vp9_update_layer_context_change_config(VP9_COMP *const cpi,
}
}
bitrate_alloc
=
(
float
)
lc
->
target_bandwidth
/
target_bandwidth
;
bitrate_alloc
=
(
float
)
lc
->
target_bandwidth
/
target_bandwidth
;
// Update buffer-related quantities.
// Update buffer-related quantities.
lrc
->
starting_buffer_level
=
lrc
->
starting_buffer_level
=
rc
->
starting_buffer_level
*
bitrate_alloc
;
(
int64_t
)(
rc
->
starting_buffer_level
*
bitrate_alloc
);
lrc
->
optimal_buffer_level
=
rc
->
optimal_buffer_level
*
bitrate_alloc
;
lrc
->
optimal_buffer_level
=
lrc
->
maximum_buffer_size
=
rc
->
maximum_buffer_size
*
bitrate_alloc
;
(
int64_t
)(
rc
->
optimal_buffer_level
*
bitrate_alloc
);
lrc
->
maximum_buffer_size
=
(
int64_t
)(
rc
->
maximum_buffer_size
*
bitrate_alloc
);
lrc
->
bits_off_target
=
MIN
(
lrc
->
bits_off_target
,
lrc
->
maximum_buffer_size
);
lrc
->
bits_off_target
=
MIN
(
lrc
->
bits_off_target
,
lrc
->
maximum_buffer_size
);
lrc
->
buffer_level
=
MIN
(
lrc
->
buffer_level
,
lrc
->
maximum_buffer_size
);
lrc
->
buffer_level
=
MIN
(
lrc
->
buffer_level
,
lrc
->
maximum_buffer_size
);
// Update framerate-related quantities.
// Update framerate-related quantities.
...
...
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