mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Merge branch 'wenjiegit-develop' into 2.0release
This commit is contained in:
commit
806b45e844
1 changed files with 6 additions and 0 deletions
|
@ -731,6 +731,12 @@ int SrsHlsCache::write_audio(SrsAvcAacCodec* codec, SrsHlsMuxer* muxer, int64_t
|
|||
}
|
||||
}
|
||||
|
||||
// cache->audio will be free in flush_audio
|
||||
// so we must check whether it's null ptr.
|
||||
if (!cache->audio) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
// TODO: config it.
|
||||
// in ms, audio delay to flush the audios.
|
||||
int64_t audio_delay = SRS_CONF_DEFAULT_AAC_DELAY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue