From: Anthony Minessale Date: Mon, 20 Apr 2015 18:56:58 +0000 (-0500) Subject: FS-7508: this setting no longer needs to be mult by 4 in recent vpx X-Git-Tag: v1.6.2~614^2~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a7418dca553cd353552df589f44fd3180ad1494;p=thirdparty%2Ffreeswitch.git FS-7508: this setting no longer needs to be mult by 4 in recent vpx --- diff --git a/src/mod/codecs/mod_vpx/mod_vpx.c b/src/mod/codecs/mod_vpx/mod_vpx.c index ccb790f069..c7cdafd2bf 100644 --- a/src/mod/codecs/mod_vpx/mod_vpx.c +++ b/src/mod/codecs/mod_vpx/mod_vpx.c @@ -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) {