add Track fields

This commit is contained in:
nareix 2016-03-31 00:35:32 +08:00
parent c241ae20c4
commit 21f37b23a4

View File

@ -3,6 +3,7 @@ package mp4
import (
"github.com/nareix/mp4/atom"
"github.com/nareix/mp4/isom"
"io"
)
@ -13,11 +14,14 @@ const (
type Track struct {
Type int
SPS []byte
PPS []byte
TrackAtom *atom.Track
r io.ReadSeeker
sps []byte
pps []byte
mpeg4AudioConfig isom.MPEG4AudioConfig
sample *atom.SampleTable
sampleIndex int
@ -34,5 +38,11 @@ type Track struct {
chunkGroupIndex int
chunkIndex int
sampleIndexInChunk int
sampleToChunkEntry *atom.SampleToChunkEntry
sttsEntry *atom.TimeToSampleEntry
cttsEntry *atom.CompositionOffsetEntry
writeMdat func ([]byte) error
lastDts int64
}