             config[AVVideoWidthKey] = NSNumber(integerLiteral: Int(dimensions.width))
             config[AVVideoHeightKey] = NSNumber(integerLiteral: Int(dimensions.height))
         } else if let sampleBuffer = sampleBuffer,
-            let formatDescription: CMFormatDescription = CMSampleBufferGetFormatDescription(sampleBuffer) {
+                  let formatDescription: CMFormatDescription = CMSampleBufferGetFormatDescription(sampleBuffer) {
+
+            // TODO: this is incorrect and needs to be fixed
             let videoDimensions = CMVideoFormatDescriptionGetDimensions(formatDescription)
             switch self.aspectRatio {
             case .standard:

    /// - instagramLandscape: 5:4 Instagram landscape
    /// - cinematic: 2.35:1 cinematic
    /// - custom: custom aspect ratio
    public enum OutputAspectRatio: CustomStringConvertible {
        case active
        case square
        case standard

    public var dimensions: CGSize?

    /// Output aspect ratio automatically sizes output dimensions, `active` indicates NextLevelVideoConfiguration.preset or NextLevelVideoConfiguration.dimensions
    public var aspectRatio: AspectRatio = .active

    /// Video output transform for display
    public var transform: CGAffineTransform = .identity
