mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
change signature of rtp encoders and decoders
This commit is contained in:
@@ -52,7 +52,10 @@ func main() {
|
||||
}
|
||||
|
||||
// setup decoder
|
||||
dec := rtpaac.NewDecoder(clockRate)
|
||||
dec := &rtpaac.Decoder{
|
||||
SampleRate: clockRate,
|
||||
}
|
||||
dec.Init()
|
||||
|
||||
// called when a RTP packet arrives
|
||||
c.OnPacketRTP = func(trackID int, pkt *rtp.Packet) {
|
||||
|
Reference in New Issue
Block a user