diff --git a/trunk/src/app/srs_app_hls.cpp b/trunk/src/app/srs_app_hls.cpp index dd225b991..d7738d812 100644 --- a/trunk/src/app/srs_app_hls.cpp +++ b/trunk/src/app/srs_app_hls.cpp @@ -74,7 +74,7 @@ using namespace std; // in ms, for HLS aac sync time. #define SRS_CONF_DEFAULT_AAC_SYNC 100 // in ms, for HLS aac flush the audio -#define SRS_CONF_DEFAULT_AAC_DELAY 300 +#define SRS_CONF_DEFAULT_AAC_DELAY 100 // @see: ngx_rtmp_mpegts_header u_int8_t mpegts_header[] = { @@ -1266,13 +1266,13 @@ int SrsHlsCache::cache_video(SrsAvcAacCodec* codec, SrsCodecSample* sample) if (nal_unit_type == 1 || nal_unit_type == 5 || nal_unit_type == 6) { // for type 6, append a aud with type 9. vb->append(aud_nal, sizeof(aud_nal)); + aud_sent = true; } } // 5: Coded slice of an IDR picture. // insert sps/pps before IDR or key frame is ok. if (nal_unit_type == 5 && !sps_pps_sent) { - //if (vf->key && !sps_pps_sent) { sps_pps_sent = true; // @see: ngx_rtmp_hls_append_sps_pps diff --git a/trunk/src/core/srs_core.hpp b/trunk/src/core/srs_core.hpp index 49c0ee32b..0b7b51846 100644 --- a/trunk/src/core/srs_core.hpp +++ b/trunk/src/core/srs_core.hpp @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // current release version #define VERSION_MAJOR "0" #define VERSION_MINOR "9" -#define VERSION_REVISION "152" +#define VERSION_REVISION "153" #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION // server info. #define RTMP_SIG_SRS_KEY "SRS"