mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-28 04:35:15 +00:00
FS-7508: this setting no longer needs to be mult by 4 in recent vpx
This commit is contained in:
parent
2c9121cd85
commit
4a7418dca5
@ -309,9 +309,9 @@ static switch_status_t init_encoder(switch_codec_t *codec)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (context->codec_settings.video.bandwidth) {
|
if (context->codec_settings.video.bandwidth) {
|
||||||
context->bandwidth = context->codec_settings.video.bandwidth * 4;
|
context->bandwidth = context->codec_settings.video.bandwidth;
|
||||||
} else {
|
} 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) {
|
if (context->bandwidth > 40960) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user