mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
remove suffix from new functions
This commit is contained in:
@@ -45,7 +45,7 @@ func main() {
|
||||
}
|
||||
|
||||
// setup RTP/H265 -> H265 decoder
|
||||
rtpDec, err := forma.CreateDecoder2()
|
||||
rtpDec, err := forma.CreateDecoder()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -59,7 +59,7 @@ func main() {
|
||||
// called when a RTP packet arrives
|
||||
c.OnPacketRTP(medi, forma, func(pkt *rtp.Packet) {
|
||||
// extract access units from RTP packets
|
||||
au, pts, err := rtpDec.DecodeUntilMarker(pkt)
|
||||
au, pts, err := rtpDec.Decode(pkt)
|
||||
if err != nil {
|
||||
if err != rtph265.ErrNonStartingPacketAndNoPrevious && err != rtph265.ErrMorePacketsNeeded {
|
||||
log.Printf("ERR: %v", err)
|
||||
|
Reference in New Issue
Block a user