From 046d9329b4a9cad77c76a9823fb697aa2fdd369c Mon Sep 17 00:00:00 2001 From: zxfskr <974259102@qq.com> Date: Thu, 26 Dec 2024 07:25:12 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8opus?= =?UTF-8?q?=20=E6=B5=81=E6=97=B6=E7=9A=84=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publisher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publisher.go b/publisher.go index f441877..b3695f2 100644 --- a/publisher.go +++ b/publisher.go @@ -95,7 +95,7 @@ func (p *RTSPPublisher) SetTracks() error { case *format.Opus: at := p.AudioTrack if at == nil { - p.CreateAudioTrack(codec.CodecID_OPUS, byte(f.PayloadType()), uint32(f.ClockRate())) + at = p.CreateAudioTrack(codec.CodecID_OPUS, byte(f.PayloadType()), uint32(f.ClockRate())) } p.Tracks[track] = at default: