mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
1,solve audio timestamp bugs;2,solve video dts increase bugs
This commit is contained in:
parent
ed1a3aa37c
commit
7f4cc6221c
7 changed files with 186 additions and 23 deletions
|
@ -3530,7 +3530,7 @@ srs_error_t SrsConfig::check_normal_config()
|
|||
&& n != "mss" && n != "latency" && n != "recvlatency"
|
||||
&& n != "peerlatency" && n != "tlpkdrop" && n != "connect_timeout"
|
||||
&& n != "sendbuf" && n != "recvbuf" && n != "payloadsize"
|
||||
&& n != "default_app") {
|
||||
&& n != "default_app" && n != "mix_correct") {
|
||||
return srs_error_new(ERROR_SYSTEM_CONFIG_INVALID, "illegal srt_stream.%s", n.c_str());
|
||||
}
|
||||
}
|
||||
|
@ -6754,6 +6754,20 @@ unsigned short SrsConfig::get_srt_listen_port()
|
|||
return (unsigned short)atoi(conf->arg0().c_str());
|
||||
}
|
||||
|
||||
bool SrsConfig::get_srt_mix_correct() {
|
||||
static bool DEFAULT = true;
|
||||
SrsConfDirective* conf = root->get("srt_server");
|
||||
if (!conf) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
conf = conf->get("mix_correct");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return DEFAULT;
|
||||
}
|
||||
return SRS_CONF_PERFER_FALSE(conf->arg0());
|
||||
}
|
||||
|
||||
int SrsConfig::get_srto_maxbw() {
|
||||
static int64_t DEFAULT = -1;
|
||||
SrsConfDirective* conf = root->get("srt_server");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue