Merge branch 'development' into LTS_development
This commit is contained in:
commit
5e29ff5bb6
1 changed files with 5 additions and 5 deletions
|
@ -380,17 +380,17 @@ namespace Mist {
|
|||
|
||||
}
|
||||
header << std::string(moovBox.asBox(), moovBox.boxedSize());
|
||||
|
||||
|
||||
if (!fragmented) { //if we are making a non fragmented MP4 and there are parts
|
||||
char mdatHeader[8] = {0x00,0x00,0x00,0x00,'m','d','a','t'};
|
||||
|
||||
if (mdatSize < 0xFFFFFFFF){
|
||||
Bit::htobl(mdatHeader, mdatSize);
|
||||
}
|
||||
header.write(mdatHeader, 8);
|
||||
} else {
|
||||
//this is a dirty fix to prevent the code from adding 0xDE to the end of the header
|
||||
header << (char)(0);
|
||||
}
|
||||
|
||||
size += header.str().size();
|
||||
if (fragmented) {
|
||||
realBaseOffset = header.str().size();
|
||||
|
|
Loading…
Add table
Reference in a new issue