1
0
Fork 0
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:
wenjie.zhao 2015-03-12 23:50:21 +08:00
parent 73f13dfc42
commit efe3050d7a

View file

@ -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;
}