refactor: remove some stupid code

This commit is contained in:
langhuihui
2023-05-25 14:15:09 +08:00
parent 9defe4eec3
commit 351ff9fa0c
2 changed files with 7 additions and 13 deletions

View File

@@ -77,7 +77,6 @@ func (p *RTSPPublisher) SetTracks() error {
at := p.AudioTrack
if at == nil {
at := NewG711(p.Stream, !f.MULaw, f.PayloadType(), uint32(f.ClockRate()))
at.AVCCHead = []byte{(byte(at.CodecID) << 4) | (1 << 1)}
p.AudioTrack = at
}
p.Tracks[track] = p.AudioTrack