mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
fix hls muxer Segmentation fault.
This commit is contained in:
parent
73f13dfc42
commit
efe3050d7a
1 changed files with 2 additions and 0 deletions
|
@ -731,6 +731,8 @@ 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue