Fixed iOS/Apple MP4 support

This commit is contained in:
Thulinma 2017-03-02 17:26:14 +01:00
parent 990150aaba
commit ac55b24e75
2 changed files with 3 additions and 2 deletions

View file

@ -2778,6 +2778,7 @@ namespace MP4 {
setFrameCount(1); setFrameCount(1);
setCompressorName(""); setCompressorName("");
setDepth(0x0018); setDepth(0x0018);
setInt16(0xFFFF, 76);//must be -1
} }
void VisualSampleEntry::setCodec(const char * newCodec) { void VisualSampleEntry::setCodec(const char * newCodec) {

View file

@ -439,8 +439,8 @@ namespace Mist {
} }
break; break;
} }
if (byteEnd > size - 1) { if (byteEnd > size) {
byteEnd = size - 1; byteEnd = size;
} }
}else{ }else{
byteEnd = size; byteEnd = size;