This commit is contained in:
deepch
2022-04-02 14:55:57 +03:00
parent 4d9f00d63c
commit 02504b1169
3 changed files with 47 additions and 1 deletions

View File

@@ -290,6 +290,10 @@ func (self CodecData) SampleFormat() av.SampleFormat {
return av.FLTP
}
func (self CodecData) Tag() string {
return fmt.Sprintf("mp4a.40.%d", self.Config.ObjectType)
}
func (self CodecData) PacketDuration(data []byte) (dur time.Duration, err error) {
dur = time.Duration(1024) * time.Second / time.Duration(self.Config.SampleRate)
return