1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #547, #1506, default hls_dts_directly to on. 3.0.71

This commit is contained in:
winlin 2019-12-12 16:51:34 +08:00
parent f298d5204b
commit 6f453e7f46
4 changed files with 9 additions and 7 deletions

View file

@ -1128,8 +1128,8 @@ vhost hls.srs.com {
# If on, guess the specific DTS by AAC samples, please read https://github.com/ossrs/srs/issues/547#issuecomment-294350544
# If off, directly turn the FLV timestamp to DTS, which might cause corrupt audio stream.
# @remark Recommend to set to off, unless your audio stream sample-rate and timestamp is not correct.
# Default: off
hls_dts_directly off;
# Default: on
hls_dts_directly on;
# on_hls, never config in here, should config in http_hooks.
# for the hls http callback, @see http_hooks.on_hls of vhost hooks.callback.srs.com

View file

@ -6152,7 +6152,7 @@ int SrsConfig::get_vhost_hls_nb_notify(string vhost)
bool SrsConfig::get_vhost_hls_dts_directly(string vhost)
{
static bool DEFAULT = false;
static bool DEFAULT = true;
SrsConfDirective* conf = get_hls(vhost);
if (!conf) {
@ -6164,7 +6164,7 @@ bool SrsConfig::get_vhost_hls_dts_directly(string vhost)
return DEFAULT;
}
return SRS_CONF_PERFER_FALSE(conf->arg0());
return SRS_CONF_PERFER_TRUE(conf->arg0());
}
bool SrsConfig::get_hls_cleanup(string vhost)

View file

@ -27,7 +27,7 @@
// The version config.
#define VERSION_MAJOR 3
#define VERSION_MINOR 0
#define VERSION_REVISION 70
#define VERSION_REVISION 71
// The macros generated by configure script.
#include <srs_auto_headers.hpp>