             if let maxFrameRate = self.maxFrameRate {
                 compressionDict[AVVideoMaxKeyFrameIntervalKey] = maxFrameRate
             }
+            
             config[AVVideoCompressionPropertiesKey] = compressionDict
 
             return config

        if let options = self.options {
            return options
        } else {
            var config: [String: Any] = [AVVideoAverageBitRateKey:self.bitRate]
            
            if let dimensions = self.dimensions {
                config[AVVideoWidthKey] = dimensions.width

            }
            
            var compressionDict: [String:Any] = [:]
            compressionDict[AVVideoAverageBitRateKey] = self.bitRate
            compressionDict[AVVideoAllowFrameReorderingKey] = false
            compressionDict[AVVideoExpectedSourceFrameRateKey] = 30
            if let profileLevel = self.profileLevel {
