From 5dfe33ac12f39c75c5e66781df9478b3469d7709 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 7 Dec 2014 08:50:13 +0100 Subject: use correct definition of kilobit (1000 bits) http://en.wikipedia.org/wiki/Kilobit --- src/config.c | 6 +++--- src/stream.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/config.c b/src/config.c index f7ca5bb..68512b9 100644 --- a/src/config.c +++ b/src/config.c @@ -48,7 +48,7 @@ static struct config core_config = { "", "", "", "", 352, 288, - 512000, + 500000, 25, }, #endif @@ -193,8 +193,8 @@ int config_parse_conf(struct config *cfg, const struct conf *conf) (void)conf_get_range(conf, "rtp_ports", &cfg->avt.rtp_ports); if (0 == conf_get_range(conf, "rtp_bandwidth", &cfg->avt.rtp_bw)) { - cfg->avt.rtp_bw.min *= 1024; - cfg->avt.rtp_bw.max *= 1024; + cfg->avt.rtp_bw.min *= 1000; + cfg->avt.rtp_bw.max *= 1000; } (void)conf_get_bool(conf, "rtcp_enable", &cfg->avt.rtcp_enable); (void)conf_get_bool(conf, "rtcp_mux", &cfg->avt.rtcp_mux); diff --git a/src/stream.c b/src/stream.c index 07f51bd..898f94a 100644 --- a/src/stream.c +++ b/src/stream.c @@ -523,7 +523,7 @@ void stream_set_bw(struct stream *s, uint32_t bps) if (!s) return; - sdp_media_set_lbandwidth(s->sdp, SDP_BANDWIDTH_AS, bps / 1024); + sdp_media_set_lbandwidth(s->sdp, SDP_BANDWIDTH_AS, bps / 1000); } -- cgit v1.2.3