FS-7500 FS-7513: add video bandwidth control function and use it in mod_conference

This commit is contained in:
Anthony Minessale
2015-02-06 16:13:32 -06:00
parent 22d53792eb
commit f198bc3601
7 changed files with 106 additions and 11 deletions
+3 -1
View File
@@ -985,7 +985,9 @@ static inline uint32_t switch_parse_bandwidth_string(const char *bwv)
if (bwv && (bw = (int32_t) atol(bwv))) {
if (bw < 0) return 0;
if (switch_stristr("KB", bwv)) {
if (!strcasecmp(bwv, "auto")) {
return -1;
} else if (switch_stristr("KB", bwv)) {
bw *= 8;
} else if (switch_stristr("mb", bwv)) {
bw *= 1024;