diff --git a/src/input/input_mp4.cpp b/src/input/input_mp4.cpp index cb66dbd6..bc3c68f1 100644 --- a/src/input/input_mp4.cpp +++ b/src/input/input_mp4.cpp @@ -25,9 +25,7 @@ namespace Mist{ deltaTotal = 0; offsetIndex = 0; offsetPos = 0; - sttsBox.clear(); - hasCTTS = false; - cttsBox.clear(); + stscBox.clear(); stszBox.clear(); stcoBox.clear(); co64Box.clear(); @@ -50,14 +48,11 @@ namespace Mist{ MP4::STBL stblBox = mdiaBox.getChild().getChild(); - sttsBox.copyFrom(stblBox.getChild()); - cttsBox.copyFrom(stblBox.getChild()); stszBox.copyFrom(stblBox.getChild()); stcoBox.copyFrom(stblBox.getChild()); co64Box.copyFrom(stblBox.getChild()); stscBox.copyFrom(stblBox.getChild()); stco64 = co64Box.isType("co64"); - hasCTTS = cttsBox.isType("ctts"); } void mp4TrackHeader::getPart(uint64_t index, uint64_t &offset){ diff --git a/src/input/input_mp4.h b/src/input/input_mp4.h index 88a8c39b..a46d3cc4 100644 --- a/src/input/input_mp4.h +++ b/src/input/input_mp4.h @@ -46,9 +46,6 @@ namespace Mist{ MP4::STCO stcoBox; MP4::CO64 co64Box; MP4::STSZ stszBox; - MP4::STTS sttsBox; - bool hasCTTS; - MP4::CTTS cttsBox; MP4::STSC stscBox; uint64_t timeScale; void getPart(uint64_t index, uint64_t &offset);