add track.go
This commit is contained in:
parent
e060a3e79d
commit
7f98b69834
27
track.go
Normal file
27
track.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
package mp4
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/nareix/mp4/atom"
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
H264 = 1
|
||||||
|
AAC = 2
|
||||||
|
)
|
||||||
|
|
||||||
|
type Track struct {
|
||||||
|
Type int
|
||||||
|
SPS []byte
|
||||||
|
PPS []byte
|
||||||
|
TrackAtom *atom.Track
|
||||||
|
r io.ReadSeeker
|
||||||
|
|
||||||
|
sample *atom.SampleTable
|
||||||
|
sampleIndex int
|
||||||
|
chunkGroupIndex int
|
||||||
|
chunkIndex int
|
||||||
|
sampleIndexInChunk int
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user