[fix] mpegts: 转ts时,pmt中的avc标志写错导致vlc无法播放h264编码的视频 #284 #277

pull/286/head
q191201771 2 years ago
parent b71749deb1
commit c452141894

@ -109,7 +109,7 @@ func (q *rtmp2MpegtsFilter) drain() {
func (q *rtmp2MpegtsFilter) getVideoStreamType() uint8 { func (q *rtmp2MpegtsFilter) getVideoStreamType() uint8 {
switch q.videoCodecId { switch q.videoCodecId {
case int(base.RtmpCodecIdAvc): case int(base.RtmpCodecIdAvc):
return mpegts.StreamTypeAac return mpegts.StreamTypeAvc
case int(base.RtmpCodecIdHevc): case int(base.RtmpCodecIdHevc):
return mpegts.StreamTypeHevc return mpegts.StreamTypeHevc
} }

Loading…
Cancel
Save