Change codec channels from uint16 to uint8

This commit is contained in:
Alex X
2025-03-25 15:31:43 +03:00
parent f535595d1f
commit e1342f06b7
8 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -89,12 +89,12 @@ func (m *Muxer) GetInit() ([]byte, error) {
}
mv.WriteAudioTrack(
uint32(i+1), codec.Name, codec.ClockRate, codec.Channels, b,
uint32(i+1), codec.Name, codec.ClockRate, uint16(codec.Channels), b,
)
case core.CodecOpus, core.CodecMP3, core.CodecPCMA, core.CodecPCMU, core.CodecFLAC:
mv.WriteAudioTrack(
uint32(i+1), codec.Name, codec.ClockRate, codec.Channels, nil,
uint32(i+1), codec.Name, codec.ClockRate, uint16(codec.Channels), nil,
)
}
}