]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7508: this setting no longer needs to be mult by 4 in recent vpx
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Apr 2015 18:56:58 +0000 (13:56 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:23 +0000 (12:47 -0500)
src/mod/codecs/mod_vpx/mod_vpx.c

index ccb790f06991c199461e1ea2a0dc2ab681d2dffb..c7cdafd2bf1cea38ad22f096e25ba2c46e97dcb8 100644 (file)
@@ -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) {