From 21f37b23a4d9e16b88f1e6f4de967fd933c3e3da Mon Sep 17 00:00:00 2001 From: nareix Date: Thu, 31 Mar 2016 00:35:32 +0800 Subject: [PATCH] add Track fields --- track.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/track.go b/track.go index 87f40f8..7b56c6c 100644 --- a/track.go +++ b/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 }