diff --git a/lib/mp4.h b/lib/mp4.h index cce0056d..2c39c91c 100644 --- a/lib/mp4.h +++ b/lib/mp4.h @@ -26,12 +26,11 @@ namespace MP4 { void parseDTSC(JSON::Value mediaPart); bool sendReady(); std::string sendString(); - private: std::vector keyParts; - //std::vector keyParts = Conv.keyParts; - std::map > 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 > trackBuffer; std::string stringBuffer; }; diff --git a/lib/mp4_conv.cpp b/lib/mp4_conv.cpp index fd8ac5ea..ea4fb208 100644 --- a/lib/mp4_conv.cpp +++ b/lib/mp4_conv.cpp @@ -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 > trackBuffer; long long unsigned int curKey = 0;//the key chunk we are currently searching for in keyParts