add Track fields
This commit is contained in:
parent
c241ae20c4
commit
21f37b23a4
14
track.go
14
track.go
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user