mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
merge format and formatdecenc into formats (#222)
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"log"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/format"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/media"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/url"
|
||||
"github.com/pion/rtp"
|
||||
@@ -54,7 +54,7 @@ func main() {
|
||||
defer publisher.Close()
|
||||
|
||||
// read RTP packets from the reader and route them to the publisher
|
||||
reader.OnPacketRTPAny(func(medi *media.Media, forma format.Format, pkt *rtp.Packet) {
|
||||
reader.OnPacketRTPAny(func(medi *media.Media, forma formats.Format, pkt *rtp.Packet) {
|
||||
publisher.WritePacketRTP(medi, pkt)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user