Commit 0b5210a2 authored by Simon Morlat's avatar Simon Morlat
Browse files

restore run-time bitrate commands for VP8 and H263/MPEG4 encoder.

parent f17f4520
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment