From 7f98b6983417ae3162f4ccffdf5d26365ac51b3f Mon Sep 17 00:00:00 2001 From: nareix Date: Fri, 18 Mar 2016 20:00:20 +0800 Subject: [PATCH] add track.go --- track.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 track.go diff --git a/track.go b/track.go new file mode 100644 index 0000000..e4bb9b9 --- /dev/null +++ b/track.go @@ -0,0 +1,27 @@ + +package mp4 + +import ( + "github.com/nareix/mp4/atom" + "io" +) + +const ( + H264 = 1 + AAC = 2 +) + +type Track struct { + Type int + SPS []byte + PPS []byte + TrackAtom *atom.Track + r io.ReadSeeker + + sample *atom.SampleTable + sampleIndex int + chunkGroupIndex int + chunkIndex int + sampleIndexInChunk int +} +