Update AVFrameRateRange+includes.swift

This commit is contained in:
Marc Rousavy
2021-03-11 19:47:51 +01:00
committed by GitHub
parent 1f08a44100
commit c8bf67edc9

View File

@@ -9,6 +9,9 @@
import AVFoundation
extension AVFrameRateRange {
/**
* Returns true if this [AVFrameRateRange] contains the given [fps]
*/
func includes(fps: Double) -> Bool {
return fps >= minFrameRate && fps <= maxFrameRate
}