FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Keep draft-decoder counter assertions in one test (#3286)
bz3c922318423c
diff --git a/crates/codecs/tests/it/draft_decoders.rs b/crates/codecs/tests/it/draft_decoders.rsindex b656dea50..2397ad225 100644--- a/crates/codecs/tests/it/draft_decoders.rs+++ b/crates/codecs/tests/it/draft_decoders.rs@@ -1,4 +1,4 @@-//! Draft decoding of VP9, HEVC and AV1 through the media stack (as `h264_draft.rs` for H.264):+//! Draft decoding of H.264, VP9, HEVC and AV1 through the media stack://! off by default, approximate frames only reach draft requests, and decoding for an export after//! draft playback (same source, same GOP cache) still matches ffmpeg bit for bit.@@ -50,6 +50,7 @@ fn check(name: &str, args: &[&str], w: usize, h: usize) {/// One test (the GOP cache statistics are process-wide, so the codecs run one after another).#[test]fn draft_playback_never_reaches_exports() {+ crate::h264_draft::check();vp9();hevc();av1();diff --git a/crates/codecs/tests/it/h264_draft.rs b/crates/codecs/tests/it/h264_draft.rsindex 82721ee30..1061f17ab 100644--- a/crates/codecs/tests/it/h264_draft.rs+++ b/crates/codecs/tests/it/h264_draft.rs@@ -8,8 +8,9 @@ use common::*;use filmcraft_media::FrameRequest;use filmcraft_media::cancel::with_draft;-#[test]-fn draft_playback_never_reaches_exports() {+/// Verify H.264 default, draft and export decoding against ffmpeg.+/// Called by the shared draft-codec test because GOP statistics are process-wide.+pub(super) fn check() {let ff = filmcraft_testkit::require_ffmpeg!();// B-pyramid: references and non-reference B pictures (the ones draft mode leaves unfiltered)let Some(file) = fixture(