mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-19 15:04:59 +08:00
初步与rtmp插件调通
This commit is contained in:
@@ -80,7 +80,7 @@ type FileTypeBox struct {
|
||||
|
||||
func NewFileTypeBox() (box *FileTypeBox) {
|
||||
box = new(FileTypeBox)
|
||||
box.MP4BoxHeader.BoxType = util.ReadBE[uint32]([]byte("ftyp"))
|
||||
util.GetBE([]byte("ftyp"), &box.MP4BoxHeader.BoxType)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -121,9 +121,7 @@ type MovieBox struct {
|
||||
|
||||
func NewMovieBox() (box *MovieBox) {
|
||||
box = new(MovieBox)
|
||||
|
||||
box.MP4BoxHeader.BoxType = util.ReadBE[uint32]([]byte("moov"))
|
||||
|
||||
util.GetBE([]byte("moov"), &box.MP4BoxHeader.BoxType)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user