mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 10:40:51 +00:00
simplify
This commit is contained in:
parent
9414541edf
commit
50b195b0a4
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue