正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -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; |
-
请 注册 或 登录 后发表评论