mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-09 20:02:01 -08:00
hls: improve performance
This commit is contained in:
parent
82d8dfbc6d
commit
7668c88d3e
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue