rename pkg/formats into pkt/format

This commit is contained in:
aler9
2023-08-14 20:47:28 +02:00
parent e2c526b3b8
commit 5e5a21240d
228 changed files with 266 additions and 266 deletions

View File

@@ -4,8 +4,8 @@ import (
"log"
"github.com/bluenviron/gortsplib/v4"
"github.com/bluenviron/gortsplib/v4/pkg/formats"
"github.com/bluenviron/gortsplib/v4/pkg/formats/rtph264"
"github.com/bluenviron/gortsplib/v4/pkg/format"
"github.com/bluenviron/gortsplib/v4/pkg/format/rtph264"
"github.com/bluenviron/gortsplib/v4/pkg/url"
"github.com/pion/rtp"
)
@@ -38,7 +38,7 @@ func main() {
}
// find the H264 media and format
var forma *formats.H264
var forma *format.H264
medi := medias.FindFormat(&forma)
if medi == nil {
panic("media not found")