hls: use audioAUCount only if audio is primary track

This commit is contained in:
aler9 2021-09-07 10:23:32 +02:00
parent 02afa8ff99
commit 74f3be1eed
1 changed files with 3 additions and 1 deletions

View File

@ -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