mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
merge format and formatdecenc into formats (#222)
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"net"
|
||||
|
||||
"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/pion/rtp"
|
||||
)
|
||||
@@ -39,7 +39,7 @@ func main() {
|
||||
// create a media that contains a H265 format
|
||||
medi := &media.Media{
|
||||
Type: media.TypeVideo,
|
||||
Formats: []format.Format{&format.H265{
|
||||
Formats: []formats.Format{&formats.H265{
|
||||
PayloadTyp: 96,
|
||||
}},
|
||||
}
|
||||
|
Reference in New Issue
Block a user