mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-10 14:21:51 +00:00
FS-7508: this setting no longer needs to be mult by 4 in recent vpx
This commit is contained in:
committed by
Michael Jerris
parent
38d9a6807c
commit
da932c6a6b
@@ -309,9 +309,9 @@ static switch_status_t init_encoder(switch_codec_t *codec)
|
||||
}
|
||||
|
||||
if (context->codec_settings.video.bandwidth) {
|
||||
context->bandwidth = context->codec_settings.video.bandwidth * 4;
|
||||
context->bandwidth = context->codec_settings.video.bandwidth;
|
||||
} else {
|
||||
context->bandwidth = ((context->codec_settings.video.width * context->codec_settings.video.height) / 900) * 4;
|
||||
context->bandwidth = ((context->codec_settings.video.width * context->codec_settings.video.height) / 900);
|
||||
}
|
||||
|
||||
if (context->bandwidth > 40960) {
|
||||
|
||||
Reference in New Issue
Block a user