remove suffix from new functions

This commit is contained in:
aler9
2023-08-14 11:14:07 +02:00
parent 1a3e6ad092
commit ca87733ded
53 changed files with 142 additions and 142 deletions

View File

@@ -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)