add track.go

This commit is contained in:
nareix 2016-03-18 20:00:20 +08:00
parent e060a3e79d
commit 7f98b69834

27
track.go Normal file
View 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
}