From 4a37460deabb11eaac3f8443924076060704a10a Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 3 Jan 2018 13:03:21 +0100 Subject: [PATCH] Fix sample dependencies for some mov files. --- MP42/MP42AVFImporter.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MP42/MP42AVFImporter.m b/MP42/MP42AVFImporter.m index 960e0b6..6c75d63 100644 --- a/MP42/MP42AVFImporter.m +++ b/MP42/MP42AVFImporter.m @@ -1004,6 +1004,10 @@ } } + if (dependecies == MP42SampleDepTypeUnknown) { + dependecies = sync ? MP42SampleDepTypeIsIndependent : MP42SampleDepTypeIsDependent; + } + CFDictionaryRef attachments = CMCopyDictionaryOfAttachments(NULL, sampleBuffer, kCMAttachmentMode_ShouldPropagate); // Get CMBlockBufferRef to extract the actual data later