mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 12:32:01 -08:00
hls: use audioAUCount only if audio is primary track
This commit is contained in:
parent
02afa8ff99
commit
74f3be1eed
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue