Change codec channels from uint16 to uint8
This commit is contained in:
+2
-2
@@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user