Skip to content

Commit

Permalink
Merge pull request rs#62 from gsabran/master
Browse files Browse the repository at this point in the history
use better key name for frame rate
  • Loading branch information
rs authored Jan 6, 2017
2 parents bda0d22 + 327421a commit 0c49dea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SDAVAssetExportSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ - (AVMutableVideoComposition *)buildDefaultVideoComposition
NSDictionary *videoCompressionProperties = [self.videoSettings objectForKey:AVVideoCompressionPropertiesKey];
if (videoCompressionProperties)
{
NSNumber *maxKeyFrameInterval = [videoCompressionProperties objectForKey:AVVideoMaxKeyFrameIntervalKey];
if (maxKeyFrameInterval)
NSNumber *frameRate = [videoCompressionProperties objectForKey:AVVideoAverageNonDroppableFrameRateKey];
if (frameRate)
{
trackFrameRate = maxKeyFrameInterval.floatValue;
trackFrameRate = frameRate.floatValue;
}
}
}
Expand Down

0 comments on commit 0c49dea

Please sign in to comment.