Browse Source

hls: fix segment splitting error introduced by c3c643c6

pull/483/head
aler9 4 years ago
parent
commit
4a1ca7aa3e
  1. 2
      internal/hls/muxer.go

2
internal/hls/muxer.go

@ -141,7 +141,7 @@ func (m *Muxer) WriteAAC(pts time.Duration, aus [][]byte) error { @@ -141,7 +141,7 @@ func (m *Muxer) WriteAAC(pts time.Duration, aus [][]byte) error {
m.mutex.Lock()
defer m.mutex.Unlock()
if m.videoTrack != nil {
if m.videoTrack == nil {
if m.tsCurrent.firstPacketWritten &&
m.tsCurrent.duration() >= m.hlsSegmentDuration &&
m.audioAUCount >= segmentMinAUCount {

Loading…
Cancel
Save