This commit is contained in:
Zen 2021-05-14 22:25:51 +03:00
parent 9414541edf
commit 50b195b0a4

View file

@ -21,10 +21,7 @@ fn get_ffmpeg_info() -> PyResult<String> {
#[pyfunction]
fn adapt_probing_rate(_frames: usize, rate: usize) -> PyResult<usize> {
let new_rate = match rate {
1 => 1,
2 => 2,
3 => 3,
4 => 4,
1..=4 => rate,
_ => 4,
} as usize;
Ok(new_rate)