MP4 further developed

This commit is contained in:
Oswald Auguste de Bruin 2013-08-23 11:05:25 +02:00 committed by Erik Zandvliet
parent 2b3c3609c8
commit 491d85d3b6
2 changed files with 3 additions and 4 deletions

View file

@ -26,12 +26,11 @@ namespace MP4 {
void parseDTSC(JSON::Value mediaPart);
bool sendReady();
std::string sendString();
private:
std::vector <keyPart> keyParts;
//std::vector<MP4::keyPart> keyParts = Conv.keyParts;
std::map <long long unsigned int, std::deque<JSON::Value> > trackBuffer;
private:
long long unsigned int curKey;//the key chunk we are currently searching for in keyParts
long long unsigned int curPart;//current part in current key
std::map <long long unsigned int, std::deque<JSON::Value> > trackBuffer;
std::string stringBuffer;
};

View file

@ -313,7 +313,7 @@ namespace MP4{
//printf("%c%c%c%cmdat", (mdatSize>>24) & 0x000000FF,(mdatSize>>16) & 0x000000FF,(mdatSize>>8) & 0x000000FF,mdatSize & 0x000000FF);
header << (char)((mdatSize>>24) & 0x000000FF) << (char)((mdatSize>>16) & 0x000000FF) << (char)((mdatSize>>8) & 0x000000FF) << (char)(mdatSize & 0x000000FF) << "mdat";
std::cerr << "Header Written" << std::endl;
//std::cerr << "Header Written" << std::endl;
//end of header
std::map <long long unsigned int, std::deque<JSON::Value> > trackBuffer;
long long unsigned int curKey = 0;//the key chunk we are currently searching for in keyParts