mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
添加时钟频率配置
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user