mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
fix: use engine's aac format
This commit is contained in:
@@ -72,6 +72,7 @@ func (p *RTSPPublisher) SetTracks() error {
|
||||
conf = f.StreamMuxConfig.Programs[0].Layers[0].AudioSpecificConfig
|
||||
}
|
||||
at := p.CreateAudioTrack(codec.CodecID_AAC, byte(f.PayloadType()), uint32(conf.SampleRate)).(*AAC)
|
||||
at.AACFormat = f
|
||||
at.AACDecoder.LATM = f.LATM
|
||||
at.AACDecoder.IndexDeltaLength = f.IndexDeltaLength
|
||||
at.AACDecoder.IndexLength = f.IndexLength
|
||||
|
Reference in New Issue
Block a user