joy4/track.go
2016-03-18 20:11:54 +08:00

35 lines
389 B
Go

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
ptsEntryIndex int
sampleIndexInPtsEntry int
dtsEntryIndex int
sampleIndexInDtsEntry int
chunkGroupIndex int
chunkIndex int
sampleIndexInChunk int
}