Update AVFrameRateRange+includes.swift
This commit is contained in:
parent
1f08a44100
commit
c8bf67edc9
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user