Add a way to force the 'hvc1' fourCC until a better solution is developed.

This commit is contained in:
Damiano Galassi committed 2017-09-16 14:38:34 +02:00
1 parent 56ef707664
commit 068c5b1cb9
3 files changed
+30 -3

No files matched your search

+3
View File
@@ -200,6 +200,9 @@
else if ([track isMemberOfClass:[MP42VideoTrack class]] &&
(format == kMP42VideoCodecType_HEVC || format == kMP42VideoCodecType_HEVC_PSinBitstream)) {
uint8_t *hvcCAtom = (uint8_t *)magicCookie.bytes;
force_HEVC_completeness(hvcCAtom, magicCookie.length);
// Check whether we can use hvc1 or hev1 fourcc.
bool completeness = 0;
if (magicCookie.length && !analyze_HEVC(magicCookie.bytes, magicCookie.length, &completeness)) {