Skip to content

Commit

Permalink
Merge pull request #350 from OneHeng/fix
Browse files Browse the repository at this point in the history
patch: for #349 IsAudio interface add opus
  • Loading branch information
q191201771 authored Apr 11, 2024
2 parents 0cd88bd + 5611cb2 commit 7bee79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/base/avpacket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7bee79f

Please sign in to comment.