first commit

This commit is contained in:
Andrey Semochkin
2019-11-30 21:53:21 +01:00
commit 087a2b4c2d
60 changed files with 19091 additions and 0 deletions

30
format/mp4f/fd.go Normal file
View File

@@ -0,0 +1,30 @@
package mp4f
import "github.com/deepch/vdk/format/mp4/mp4io"
type FDummy struct {
Data []byte
Tag_ mp4io.Tag
mp4io.AtomPos
}
func (self FDummy) Children() []mp4io.Atom {
return nil
}
func (self FDummy) Tag() mp4io.Tag {
return self.Tag_
}
func (self FDummy) Len() int {
return len(self.Data)
}
func (self FDummy) Marshal(b []byte) int {
copy(b, self.Data)
return len(self.Data)
}
func (self FDummy) Unmarshal(b []byte, offset int) (n int, err error) {
return
}