Fix
This commit is contained in:
parent
d911707ae7
commit
f1373d836e
1 changed files with 3 additions and 4 deletions
|
@ -578,10 +578,9 @@ std::string Interface::GenerateLiveBootstrap( uint32_t CurMediaTime ) {
|
|||
}
|
||||
|
||||
std::string Interface::mdatFold(std::string data){
|
||||
static Box_mdat * mdat = new Box_mdat;
|
||||
static Box * mdat = new Box(0x6D646174);
|
||||
std::string Result;
|
||||
mdat->SetContent((uint8_t*)data.c_str(), data.size());
|
||||
Result.append((char*)mdat->GetBox()->GetBoxedData(), (int)mdat->GetBox()->GetBoxedDataSize());
|
||||
delete mdat;
|
||||
mdat->SetPayload((uint8_t*)data.c_str(), data.size());
|
||||
Result.append((char*)mdat->GetBoxedData(), (int)mdat->GetBoxedDataSize());
|
||||
return Result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue