From cebbbc5a10cc09c29da464df7fd4e081b3d27c22 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 20 Sep 2016 11:52:57 +0200 Subject: [PATCH] Fix pixel aspect ratio from AVFoundation. --- MP42/MP42AVFImporter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MP42/MP42AVFImporter.m b/MP42/MP42AVFImporter.m index 29b14e3..86d47ed 100644 --- a/MP42/MP42AVFImporter.m +++ b/MP42/MP42AVFImporter.m @@ -135,7 +135,7 @@ CFDictionaryRef pixelAspectRatioFromCMFormatDescription = CMFormatDescriptionGetExtension(formatDescription, kCMFormatDescriptionExtension_PixelAspectRatio); if (pixelAspectRatioFromCMFormatDescription) { - NSInteger hSpacing, vSpacing; + int hSpacing, vSpacing; CFNumberGetValue(CFDictionaryGetValue(pixelAspectRatioFromCMFormatDescription, kCMFormatDescriptionKey_PixelAspectRatioHorizontalSpacing), kCFNumberIntType, &hSpacing); CFNumberGetValue(CFDictionaryGetValue(pixelAspectRatioFromCMFormatDescription, kCMFormatDescriptionKey_PixelAspectRatioVerticalSpacing), kCFNumberIntType, &vSpacing); videoTrack.hSpacing = hSpacing;