Skip to content

Commit

Permalink
cargo update & fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Mar 9, 2024
1 parent 98dd3f6 commit e65965f
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 68 deletions.
123 changes: 60 additions & 63 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/command/args/vmaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Vmaf {
let mut model = VmafModel::from_args(&args);
if let (None, Some((w, h))) = (model, distorted_res) {
if w > 2560 && h > 1440 {
// for >2k resoultions use 4k model
// for >2k resolutions use 4k model
lavfi.push_str(":model=version=vmaf_4k_v0.6.1");
model = Some(VmafModel::Vmaf4K);
}
Expand Down Expand Up @@ -287,7 +287,7 @@ fn vmaf_lavfi_3k_upscale_to_4k() {
);
}

/// If user has overriden the model, don't default a vmaf width
/// If user has overridden the model, don't default a vmaf width
#[test]
fn vmaf_lavfi_small_width_custom_model() {
let vmaf = Vmaf {
Expand Down
2 changes: 1 addition & 1 deletion src/command/sample_encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ async fn sample(
let sample = sample::copy(&input, sample_start, sample_frames, temp_dir).await?;
let sample_size = fs::metadata(&sample).await?.len();
ensure!(
// ffmpeg copy may fail sucessfully and give us a small/empty output
// ffmpeg copy may fail successfully and give us a small/empty output
sample_size > 1024,
"ffmpeg copy failed: encoded sample too small"
);
Expand Down
4 changes: 2 additions & 2 deletions src/ffmpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ impl FfmpegEncodeArgs<'_> {

// hashing svt-av1 version means new encoder releases will avoid old cache data
if &*self.vcodec == "libsvtav1" {
let svtav1_verion = SVT_AV1_V.get_or_init(|| {
let svtav1_version = SVT_AV1_V.get_or_init(|| {
use std::process::Command;
match Command::new("SvtAv1EncApp").arg("--version").output() {
Ok(out) => out.stdout,
_ => <_>::default(),
}
});
svtav1_verion.hash(state);
svtav1_version.hash(state);
}

// input not relevant to sample encoding
Expand Down

0 comments on commit e65965f

Please sign in to comment.