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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}