This commit is contained in:
Sahin Kasap 2025-01-12 15:53:55 +08:00 committed by GitHub
commit 7f851dae3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,8 @@ func (self *Muxer) WritePacket(pkt av.Packet) (err error) {
stream, ok := self.streams[int(pkt.Idx)]
if !ok {
fmt.Printf("Warning, unsupported stream index: %d\n", pkt.Idx)
return
err = fmt.Errorf("Warning, unsupported stream index: %d", pkt.Idx)
return err
}
pkt.Time += time.Second