diff --git a/lib/mp4_generic.cpp b/lib/mp4_generic.cpp index 981893ee..f6808851 100644 --- a/lib/mp4_generic.cpp +++ b/lib/mp4_generic.cpp @@ -3021,6 +3021,7 @@ namespace MP4 { setFrameCount(1); setCompressorName(""); setDepth(0x0018); + setInt16(0xFFFF, 76);//must be -1 } void VisualSampleEntry::setCodec(const char * newCodec) { diff --git a/src/output/output_progressive_mp4.cpp b/src/output/output_progressive_mp4.cpp index c80cf0ba..0ebd5525 100644 --- a/src/output/output_progressive_mp4.cpp +++ b/src/output/output_progressive_mp4.cpp @@ -499,8 +499,8 @@ namespace Mist { } break; } - if (byteEnd > size - 1) { - byteEnd = size - 1; + if (byteEnd > size) { + byteEnd = size; } } else { byteEnd = size; diff --git a/src/sourcery.cpp b/src/sourcery.cpp index ca6d966e..b314fefd 100644 --- a/src/sourcery.cpp +++ b/src/sourcery.cpp @@ -7,6 +7,7 @@ int main(int argc, char* argv[]){ if (argc < 4) { std::cerr << "Usage: " << argv[0] << " " << std::endl; + return 1; } std::ofstream tmp(argv[3]); //begin the first line