mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-18 21:10:54 +00:00
hls: improve performance
This commit is contained in:
parent
82d8dfbc6d
commit
7668c88d3e
@ -107,8 +107,7 @@ func (m *muxerTSGenerator) writeH264(pts time.Duration, nalus [][]byte) error {
|
||||
|
||||
// add SPS and PPS before every IDR
|
||||
if typ == h264.NALUTypeIDR {
|
||||
filteredNALUs = append(filteredNALUs, m.h264Conf.SPS)
|
||||
filteredNALUs = append(filteredNALUs, m.h264Conf.PPS)
|
||||
filteredNALUs = append(filteredNALUs, m.h264Conf.SPS, m.h264Conf.PPS)
|
||||
}
|
||||
|
||||
filteredNALUs = append(filteredNALUs, nalu)
|
||||
|
Loading…
Reference in New Issue
Block a user