use BytesPerSample
This commit is contained in:
parent
5729c1dda5
commit
baa18a4731
4
muxer.go
4
muxer.go
@ -129,8 +129,8 @@ func (self *Stream) fillTrackAtom() (err error) {
|
|||||||
}
|
}
|
||||||
self.sample.SampleDesc.Mp4aDesc = &atom.Mp4aDesc{
|
self.sample.SampleDesc.Mp4aDesc = &atom.Mp4aDesc{
|
||||||
DataRefIdx: 1,
|
DataRefIdx: 1,
|
||||||
NumberOfChannels: codec.ChannelCount(),
|
NumberOfChannels: codec.ChannelLayout().Count(),
|
||||||
SampleSize: codec.ChannelCount() * 8,
|
SampleSize: codec.SampleFormat().BytesPerSample(),
|
||||||
SampleRate: atom.IntToFixed(codec.SampleRate()),
|
SampleRate: atom.IntToFixed(codec.SampleRate()),
|
||||||
Conf: &atom.ElemStreamDesc{
|
Conf: &atom.ElemStreamDesc{
|
||||||
Data: buf.Bytes(),
|
Data: buf.Bytes(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user