[fix] 增强兼容性,当收到的rtmp message中的payload长度为0时,则忽略 #112

pull/114/head
q191201771 3 years ago
parent e208a3ac36
commit cce165b16c

@ -990,6 +990,11 @@ func (group *Group) broadcastByRtmpMsg(msg base.RtmpMsg) {
lrm2ft remux.LazyRtmpMsg2FlvTag
)
if len(msg.Payload) == 0 {
nazalog.Warnf("[%s] msg payload length is 0. %+v", group.UniqueKey, msg.Header)
return
}
// # hls
if group.config.HlsConfig.Enable && group.hlsMuxer != nil {
group.hlsMuxer.FeedRtmpMessage(msg)

Loading…
Cancel
Save