mirror of
https://github.com/aler9/gortsplib
synced 2025-10-18 21:14:38 +08:00
add MP4A-LATM decoder and encoder (#299)
This commit is contained in:
@@ -16,8 +16,9 @@ type Decoder struct {
|
||||
}
|
||||
|
||||
// Init initializes the decoder.
|
||||
func (d *Decoder) Init() {
|
||||
func (d *Decoder) Init() error {
|
||||
d.timeDecoder = rtptime.NewDecoder(d.SampleRate)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Decode decodes an audio frame from a RTP packet.
|
||||
|
Reference in New Issue
Block a user