FS-8293 fix some miscues on this patch

This commit is contained in:
Anthony Minessale
2015-11-20 16:24:41 -06:00
parent 9444df1b2a
commit 3ac546fbf1
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -848,6 +848,8 @@ static switch_status_t open_encoder(h264_codec_context_t *context, uint32_t widt
context->bandwidth = switch_calc_bitrate(context->codec_settings.video.width, context->codec_settings.video.height, 0, 0) * 8;
}
sane = switch_calc_bitrate(context->codec_settings.video.width, context->codec_settings.video.height, 1, 30);
if (context->bandwidth > sane) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "BITRATE TRUNCATED TO %d\n", sane);
context->bandwidth = sane * 8;