mirror of
https://github.com/kerberos-io/joy4.git
synced 2025-12-24 13:57:59 +08:00
Update muxer.go
This commit is contained in:
@@ -170,7 +170,7 @@ func (self *Muxer) WriteHeader(streams []av.CodecData) (err error) {
|
||||
|
||||
func (self *Muxer) WritePacket(pkt av.Packet) (err error) {
|
||||
// Check if pkt.Idx is a valid stream
|
||||
if len(self.streams) < pkt.Idx + 1 {
|
||||
if len(self.streams) < int(pkt.Idx + 1) {
|
||||
return
|
||||
}
|
||||
stream := self.streams[pkt.Idx]
|
||||
|
||||
Reference in New Issue
Block a user