From 52dfc62e6764c37b8fec214b8c72e4563a10744e 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 06:43:24 +0300 Subject: [PATCH] ec-vp8 tests: ffmpeg oracle uses -fps_mode passthrough ffmpeg 9 conforms rawvideo output to the IVF timestamp grid, duplicating frames where hidden altref frames consume a pts slot (altref-160x96.ivf: 96 frames out vs 90 shown). Passthrough emits exactly the shown frames, matching the decoder contract. --- crates/ec-vp8/tests/it/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ec-vp8/tests/it/common.rs b/crates/ec-vp8/tests/it/common.rs index ac9acac6..37988bb1 100644 --- a/crates/ec-vp8/tests/it/common.rs +++ b/crates/ec-vp8/tests/it/common.rs @@ -81,7 +81,7 @@ pub fn ffmpeg_raw_yuv(path: &std::path::Path) -> Vec { let out = ec_testkit::ffmpeg() .args(["-v", "error", "-i"]) .arg(path) - .args(["-f", "rawvideo", "-pix_fmt", "yuv420p", "-"]) + .args(["-fps_mode", "passthrough", "-f", "rawvideo", "-pix_fmt", "yuv420p", "-"]) .output() .expect("ffmpeg runs"); assert!(out.status.success(), "ffmpeg failed on {path:?}");