添加时钟频率配置

This commit is contained in:
dexter
2023-02-08 14:19:36 +08:00
parent 70321ccd1f
commit 3b671606b6
2 changed files with 18 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ func (p *RTSPPublisher) SetTracks() error {
vt.WriteSliceBytes(f.PPS)
}
case *format.MPEG4Audio:
at := NewAAC(p.Stream, f.PayloadType())
at := NewAAC(p.Stream, f.PayloadType(), uint32(f.ClockRate()))
p.Tracks[track] = at
at.SizeLength = f.SizeLength
if f.Config.Type == mpeg4audio.ObjectTypeAACLC {