wenjie.zhao

fix hls muxer Segmentation fault.

@@ -731,6 +731,10 @@ int SrsHlsCache::write_audio(SrsAvcAacCodec* codec, SrsHlsMuxer* muxer, int64_t @@ -731,6 +731,10 @@ int SrsHlsCache::write_audio(SrsAvcAacCodec* codec, SrsHlsMuxer* muxer, int64_t
731 } 731 }
732 } 732 }
733 733
  734 + if (!cache->audio) {
  735 + return ret;
  736 + }
  737 +
734 // TODO: config it. 738 // TODO: config it.
735 // in ms, audio delay to flush the audios. 739 // in ms, audio delay to flush the audios.
736 int64_t audio_delay = SRS_CONF_DEFAULT_AAC_DELAY; 740 int64_t audio_delay = SRS_CONF_DEFAULT_AAC_DELAY;