From 88a7a852102d613b4c66c1fe731f53bfaab32f3e Mon Sep 17 00:00:00 2001 From: Ivan Reinaldo Date: Wed, 23 Dec 2020 09:43:31 +0700 Subject: [PATCH] fix bug overlay not showing --- Library/Sources/SCAssetExportSession.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Sources/SCAssetExportSession.m b/Library/Sources/SCAssetExportSession.m index 1dd38f5a..014c6cbb 100644 --- a/Library/Sources/SCAssetExportSession.m +++ b/Library/Sources/SCAssetExportSession.m @@ -616,6 +616,8 @@ - (void)_setupVideoUsingTracks:(NSArray *)videoTracks { if (videoComposition != nil) { _filter = nil; } + } else if (videoComposition == nil) { + videoComposition = [AVMutableVideoComposition videoCompositionWithPropertiesOfAsset:_inputAsset]; } NSDictionary *settings = nil;