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