mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
rename pkg/formats into pkt/format
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"net"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v4"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/formats"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/format"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/media"
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
@@ -38,7 +38,7 @@ func main() {
|
||||
// create a media that contains a Opus format
|
||||
medi := &media.Media{
|
||||
Type: media.TypeAudio,
|
||||
Formats: []formats.Format{&formats.Opus{
|
||||
Formats: []format.Format{&format.Opus{
|
||||
PayloadTyp: 96,
|
||||
IsStereo: false,
|
||||
}},
|
||||
|
Reference in New Issue
Block a user