]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8293 make sanity level based on 1080p
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 25 Nov 2015 21:19:59 +0000 (15:19 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 25 Nov 2015 21:19:59 +0000 (15:19 -0600)
src/mod/applications/mod_av/avcodec.c
src/mod/codecs/mod_vpx/mod_vpx.c

index 359be792e171b655e13c1c59d80479df3739efa7..9b2bb89a6652769893c62608dffc8a0f6be55e67 100644 (file)
@@ -848,7 +848,7 @@ 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);
+       sane = switch_calc_bitrate(1920, 1080, 1, 30);
 
        if (context->bandwidth > sane) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "BITRATE TRUNCATED TO %d\n", sane);
index 44e93fc4d8a8b0c8ba6b53d515e4ecf8fec4f843..b094bdeb18bd8e01fbba1f657407a7ef1b23bd94 100644 (file)
@@ -321,7 +321,7 @@ static switch_status_t init_encoder(switch_codec_t *codec)
 
        }
 
-       sane = switch_calc_bitrate(context->codec_settings.video.width, context->codec_settings.video.height, 1, 30);
+       sane = switch_calc_bitrate(1920, 1080, 1, 30);
 
        if (context->bandwidth > sane) {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(codec->session), SWITCH_LOG_WARNING, "BITRATE TRUNCATED FROM %d TO %d\n", context->bandwidth, sane);