From af2f12a2cefac77c40d23c61068e1a4a7c3383de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 04:43:03 +0300 Subject: [PATCH] ec-av1 probe: use pinned ec_testkit ffmpeg/ffprobe (ec-testkit now a regular dep) --- crates/ec-av1/Cargo.toml | 2 +- crates/ec-av1/src/probe.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ec-av1/Cargo.toml b/crates/ec-av1/Cargo.toml index 21a37242..809f70b1 100644 --- a/crates/ec-av1/Cargo.toml +++ b/crates/ec-av1/Cargo.toml @@ -7,6 +7,7 @@ license.workspace = true authors.workspace = true [dependencies] +ec-testkit.workspace = true ec-core.workspace = true ec-av1-syntax.workspace = true archmage = "=0.9.31-beta.1" @@ -21,7 +22,6 @@ default = ["gate-counters"] gate-counters = [] [dev-dependencies] -ec-testkit.workspace = true # `nightly` only makes StatsAlloc::new const, so it can be a #[global_allocator] static. stats_alloc = { version = "0.1.10", features = ["nightly"] } tracking-allocator = "0.4.0" diff --git a/crates/ec-av1/src/probe.rs b/crates/ec-av1/src/probe.rs index e70d1cff..9cd42902 100644 --- a/crates/ec-av1/src/probe.rs +++ b/crates/ec-av1/src/probe.rs @@ -9,12 +9,13 @@ //! `encode::tests::the_probe_arms_the_gates_source` pins. use crate::encode::Picture; +#[cfg(test)] use std::process::Command; /// The video stream's coded size, from ffprobe. #[must_use] pub fn dims(clip: &str) -> Option<(usize, usize)> { - let out = Command::new("ffprobe") + let out = ec_testkit::ffprobe() .args(["-v", "error", "-select_streams", "v:0"]) .args(["-show_entries", "stream=width,height", "-of", "csv=p=0"]) .arg(clip) @@ -66,7 +67,7 @@ pub fn source( height: usize, frames: usize, ) -> Vec { - let out = Command::new("ffmpeg") + let out = ec_testkit::ffmpeg() .args(["-v", "error", "-ss", skip, "-i", clip]) .args(["-frames:v", &frames.to_string()]) .args(["-vf", vf])