From 5611cb2f192f14728cca0bb00e0b7e15d791a00a Mon Sep 17 00:00:00 2001 From: "zangshouchi@163.com" Date: Mon, 8 Apr 2024 09:20:36 +0800 Subject: [PATCH] IsAudio interface add opus --- pkg/base/avpacket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/base/avpacket.go b/pkg/base/avpacket.go index bbdbf770..6fc61f25 100644 --- a/pkg/base/avpacket.go +++ b/pkg/base/avpacket.go @@ -57,7 +57,7 @@ type AvPacket struct { } func (packet *AvPacket) IsAudio() bool { - return packet.PayloadType == AvPacketPtAac || packet.PayloadType == AvPacketPtG711A || packet.PayloadType == AvPacketPtG711U + return packet.PayloadType == AvPacketPtAac || packet.PayloadType == AvPacketPtG711A || packet.PayloadType == AvPacketPtG711U || packet.PayloadType == AvPacketPtOpus } func (packet *AvPacket) IsVideo() bool {