diff --git a/subscriber.go b/subscriber.go index c322f5c..081b996 100644 --- a/subscriber.go +++ b/subscriber.go @@ -136,6 +136,10 @@ func (s *OutputStream) sendVideo(video *avformat.AVPacket) error { return s.sendVideo(video) } func (s *OutputStream) sendAudio(audio *avformat.AVPacket) error { + if !s.VTSent { + audio.Recycle() + return nil + } if s.ATSent { if s.FirstScreen != nil && s.firstScreenIndex == -1 { audio.Recycle()