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 (
|
import (
|
||||||
"github.com/nareix/mp4/atom"
|
"github.com/nareix/mp4/atom"
|
||||||
|
"github.com/nareix/mp4/isom"
|
||||||
"io"
|
"io"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -13,11 +14,14 @@ const (
|
|||||||
|
|
||||||
type Track struct {
|
type Track struct {
|
||||||
Type int
|
Type int
|
||||||
SPS []byte
|
|
||||||
PPS []byte
|
|
||||||
TrackAtom *atom.Track
|
TrackAtom *atom.Track
|
||||||
r io.ReadSeeker
|
r io.ReadSeeker
|
||||||
|
|
||||||
|
sps []byte
|
||||||
|
pps []byte
|
||||||
|
|
||||||
|
mpeg4AudioConfig isom.MPEG4AudioConfig
|
||||||
|
|
||||||
sample *atom.SampleTable
|
sample *atom.SampleTable
|
||||||
sampleIndex int
|
sampleIndex int
|
||||||
|
|
||||||
@ -34,5 +38,11 @@ type Track struct {
|
|||||||
chunkGroupIndex int
|
chunkGroupIndex int
|
||||||
chunkIndex int
|
chunkIndex int
|
||||||
sampleIndexInChunk 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