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

@@ -48,7 +48,7 @@ func main() {
}
// setup RTP/H264 -> H264 decoder
rtpDec, err := forma.CreateDecoder2()
rtpDec, err := forma.CreateDecoder()
if err != nil {
panic(err)
}
@@ -77,7 +77,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 != rtph264.ErrNonStartingPacketAndNoPrevious && err != rtph264.ErrMorePacketsNeeded {
log.Printf("ERR: %v", err)