Little cleanup to MP4 input
Change-Id: I33405e515241ce2d6da409001c73d0e09ee72240
This commit is contained in:
parent
95c25fe966
commit
4dd6f0676c
2 changed files with 1 additions and 9 deletions
|
@ -25,9 +25,7 @@ namespace Mist{
|
||||||
deltaTotal = 0;
|
deltaTotal = 0;
|
||||||
offsetIndex = 0;
|
offsetIndex = 0;
|
||||||
offsetPos = 0;
|
offsetPos = 0;
|
||||||
sttsBox.clear();
|
stscBox.clear();
|
||||||
hasCTTS = false;
|
|
||||||
cttsBox.clear();
|
|
||||||
stszBox.clear();
|
stszBox.clear();
|
||||||
stcoBox.clear();
|
stcoBox.clear();
|
||||||
co64Box.clear();
|
co64Box.clear();
|
||||||
|
@ -50,14 +48,11 @@ namespace Mist{
|
||||||
|
|
||||||
MP4::STBL stblBox = mdiaBox.getChild<MP4::MINF>().getChild<MP4::STBL>();
|
MP4::STBL stblBox = mdiaBox.getChild<MP4::MINF>().getChild<MP4::STBL>();
|
||||||
|
|
||||||
sttsBox.copyFrom(stblBox.getChild<MP4::STTS>());
|
|
||||||
cttsBox.copyFrom(stblBox.getChild<MP4::CTTS>());
|
|
||||||
stszBox.copyFrom(stblBox.getChild<MP4::STSZ>());
|
stszBox.copyFrom(stblBox.getChild<MP4::STSZ>());
|
||||||
stcoBox.copyFrom(stblBox.getChild<MP4::STCO>());
|
stcoBox.copyFrom(stblBox.getChild<MP4::STCO>());
|
||||||
co64Box.copyFrom(stblBox.getChild<MP4::CO64>());
|
co64Box.copyFrom(stblBox.getChild<MP4::CO64>());
|
||||||
stscBox.copyFrom(stblBox.getChild<MP4::STSC>());
|
stscBox.copyFrom(stblBox.getChild<MP4::STSC>());
|
||||||
stco64 = co64Box.isType("co64");
|
stco64 = co64Box.isType("co64");
|
||||||
hasCTTS = cttsBox.isType("ctts");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void mp4TrackHeader::getPart(uint64_t index, uint64_t &offset){
|
void mp4TrackHeader::getPart(uint64_t index, uint64_t &offset){
|
||||||
|
|
|
@ -46,9 +46,6 @@ namespace Mist{
|
||||||
MP4::STCO stcoBox;
|
MP4::STCO stcoBox;
|
||||||
MP4::CO64 co64Box;
|
MP4::CO64 co64Box;
|
||||||
MP4::STSZ stszBox;
|
MP4::STSZ stszBox;
|
||||||
MP4::STTS sttsBox;
|
|
||||||
bool hasCTTS;
|
|
||||||
MP4::CTTS cttsBox;
|
|
||||||
MP4::STSC stscBox;
|
MP4::STSC stscBox;
|
||||||
uint64_t timeScale;
|
uint64_t timeScale;
|
||||||
void getPart(uint64_t index, uint64_t &offset);
|
void getPart(uint64_t index, uint64_t &offset);
|
||||||
|
|
Loading…
Add table
Reference in a new issue