joy4/stream.go
2016-04-19 18:45:32 +08:00

42 lines
651 B
Go

package mp4
import (
"github.com/nareix/av"
"github.com/nareix/mp4/atom"
"io"
)
type Stream struct {
av.StreamCommon
trackAtom *atom.Track
r io.ReadSeeker
idx int
muxer *Muxer
sample *atom.SampleTable
sampleIndex int
sampleOffsetInChunk int64
syncSampleIndex int
dts int64
sttsEntryIndex int
sampleIndexInSttsEntry int
cttsEntryIndex int
sampleIndexInCttsEntry int
chunkGroupIndex int
chunkIndex int
sampleIndexInChunk int
sttsEntry *atom.TimeToSampleEntry
cttsEntry *atom.CompositionOffsetEntry
writeMdat func([]byte) (int64, error)
lastDts int64
}