fix hls muxer Segmentation fault.
This commit is contained in:
parent
73f13dfc42
commit
efe3050d7a
|
|
@ -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 New Issue
Block a user