mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
merge format and formatdecenc into formats (#222)
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
"log"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/format"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formatdecenc/rtpmjpeg"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmjpeg"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/url"
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
@@ -41,7 +41,7 @@ func main() {
|
||||
}
|
||||
|
||||
// find the M-JPEG media and format
|
||||
var forma *format.MJPEG
|
||||
var forma *formats.MJPEG
|
||||
medi := medias.FindFormat(&forma)
|
||||
if medi == nil {
|
||||
panic("media not found")
|
||||
|
Reference in New Issue
Block a user