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
mediastreamer2
Commits
0b5210a2
Commit
0b5210a2
authored
Jan 10, 2014
by
Simon Morlat
Browse files
restore run-time bitrate commands for VP8 and H263/MPEG4 encoder.
parent
f17f4520
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
src/videofilters/videoenc.c
src/videofilters/videoenc.c
+1
-0
src/videofilters/vp8.c
src/videofilters/vp8.c
+1
-0
No files found.
src/videofilters/videoenc.c
View file @
0b5210a2
...
...
@@ -941,6 +941,7 @@ static int enc_set_br(MSFilter *f, void *arg) {
if
(
s
->
av_context
.
codec
!=
NULL
)
{
/* Encoding is already ongoing, do not change video size, only bitrate. */
s
->
vconf
.
required_bitrate
=
br
;
enc_set_configuration
(
f
,
&
s
->
vconf
);
}
else
{
MSVideoConfiguration
best_vconf
=
ms_video_find_best_configuration_for_bitrate
(
s
->
vconf_list
,
br
);
enc_set_configuration
(
f
,
&
best_vconf
);
...
...
src/videofilters/vp8.c
View file @
0b5210a2
...
...
@@ -347,6 +347,7 @@ static int enc_set_br(MSFilter *f, void*data) {
if
(
s
->
ready
)
{
/* Encoding is already ongoing, do not change video size, only bitrate. */
s
->
vconf
.
required_bitrate
=
br
;
enc_set_configuration
(
f
,
&
s
->
vconf
);
}
else
{
MSVideoConfiguration
best_vconf
=
ms_video_find_best_configuration_for_bitrate
(
s
->
vconf_list
,
br
);
enc_set_configuration
(
f
,
&
best_vconf
);
...
...
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