Browse Source

hls: use audioAUCount only if audio is primary track

pull/591/head
aler9 4 years ago
parent
commit
74f3be1eed
  1. 4
      internal/hls/muxer.go

4
internal/hls/muxer.go

@ -158,7 +158,9 @@ func (m *Muxer) WriteAAC(pts time.Duration, aus [][]byte) error { @@ -158,7 +158,9 @@ func (m *Muxer) WriteAAC(pts time.Duration, aus [][]byte) error {
return err
}
m.audioAUCount++
if m.videoTrack == nil {
m.audioAUCount++
}
}
return nil

Loading…
Cancel
Save