From 7539ac68bded30cfafe454a7a1783807543be42b Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 19 Sep 2017 12:34:55 +0200 Subject: [PATCH] Add a preference to force the 'hvc1' fourCC. --- MP42/MP42Muxer.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MP42/MP42Muxer.m b/MP42/MP42Muxer.m index 89087bc..29ef279 100644 --- a/MP42/MP42Muxer.m +++ b/MP42/MP42Muxer.m @@ -201,7 +201,10 @@ (format == kMP42VideoCodecType_HEVC || format == kMP42VideoCodecType_HEVC_PSinBitstream)) { uint8_t *hvcCAtom = (uint8_t *)magicCookie.bytes; - force_HEVC_completeness(hvcCAtom, magicCookie.length); + + if ([NSUserDefaults.standardUserDefaults boolForKey:@"SBForceHvc1"]) { + force_HEVC_completeness(hvcCAtom, magicCookie.length); + } // Check whether we can use hvc1 or hev1 fourcc. bool completeness = 0;