FS-7503: add vb param for vid bitrate

This commit is contained in:
Anthony Minessale 2015-04-20 15:34:29 -05:00 committed by Michael Jerris
parent 4a7418dca5
commit ad20119652

View File

@ -137,6 +137,19 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
}
}
if ((val = switch_event_get_header(fh->params, "vb"))) {
tmp = atoi(val);
if (strrchr(val, 'k')) {
tmp *= 1024;
} else if (strrchr(val, 'm')) {
tmp *= 1048576;
}
fh->mm.vb = tmp;
}
if ((val = switch_event_get_header(fh->params, "vw"))) {
tmp = atoi(val);
if (tmp > 0) {