Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adaptive extra splits #584

Merged
merged 5 commits into from
Mar 5, 2022
Merged

Adaptive extra splits #584

merged 5 commits into from
Mar 5, 2022

Conversation

master-of-zen
Copy link
Owner

@master-of-zen master-of-zen commented Mar 5, 2022

Sets extra splits to 10 * fps if extra splits option was not provided, defaults to 240 if failed to get fps

av1an-cli/src/lib.rs Outdated Show resolved Hide resolved
} else {
None
extra_splits_len: match args.extra_split {
Some(x) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be written with less lines like this:

match args.extra_split {
  Some(0) => None,
  Some(x) => Some(x),
  None => { /* rest of the code */ }
}

@mergify mergify bot merged commit f66a805 into master Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants