From 990150aaba25ba6a3ad2d6bcc1bf07a96842d362 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 2 Mar 2017 17:27:24 +0100 Subject: [PATCH 1/2] Fixed sourcery bug when wrong argument count given --- src/sourcery.cpp | 1 + 1 file changed, 1 insertion(+) 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 From ac55b24e75bbc3ca284cd48261b50b438dab182a Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 2 Mar 2017 17:26:14 +0100 Subject: [PATCH 2/2] Fixed iOS/Apple MP4 support --- lib/mp4_generic.cpp | 1 + src/output/output_progressive_mp4.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mp4_generic.cpp b/lib/mp4_generic.cpp index 878b9280..ab7b81db 100644 --- a/lib/mp4_generic.cpp +++ b/lib/mp4_generic.cpp @@ -2778,6 +2778,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 56300994..a230a223 100644 --- a/src/output/output_progressive_mp4.cpp +++ b/src/output/output_progressive_mp4.cpp @@ -439,8 +439,8 @@ namespace Mist { } break; } - if (byteEnd > size - 1) { - byteEnd = size - 1; + if (byteEnd > size) { + byteEnd = size; } }else{ byteEnd = size;