Add a preference to force the 'hvc1' fourCC.

This commit is contained in:
Damiano Galassi committed 2017-09-19 12:34:55 +02:00
1 parent 0f88c93098
commit 7539ac68bd
1 file changed
+4 -1
+4 -1
View File
@@ -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;