Include track decoding trials in video integration suite

This commit is contained in:
FredApps
2026-11-20 00:54:24 +01:00
parent b73ad070b2
commit 0290ef624a
9 changed files with 8 additions and 9 deletions
-4
View File
@@ -85,10 +85,6 @@ craft-media-testkit = { workspace = true }
# demuxers, for the track decoder's tests; the VMD demuxer, for the VMD decoder's.
craft-media = { workspace = true, features = ["avi", "isobmff", "mpegts", "vmd"] }
# Built with any decoder feature; each codec's tests need its own.
[[test]]
name = "track"
[[example]]
name = "vp8_fuzz"
required-features = ["vp8-decode"]
+3
View File
@@ -71,3 +71,6 @@ mod hevc;
#[cfg(feature = "av1")]
#[path = "av1/main.rs"]
mod av1;
#[path = "track/main.rs"]
mod track;
@@ -1,6 +1,6 @@
//! AV1 in MP4 (an `av1C` record whose config OBUs hold the sequence header).
use crate::common;
use super::common;
use craft_media::CodecId;
/// libaom when ffmpeg has it, else SVT-AV1: a fixture name and the encoder arguments.
@@ -1,7 +1,7 @@
//! H.264 in MP4 (an `avcC` record, length-prefixed packets), MPEG-TS (Annex B, no configuration)
//! and AVI with the parameter sets in the stream header only (an Annex B configuration).
use crate::common;
use super::common;
use craft_media::CodecId;
use craft_video::{TrackDecoder, VideoError};
@@ -1,7 +1,7 @@
//! HEVC in MP4 (an `hvcC` record, length-prefixed packets) and MPEG-TS (Annex B, no
//! configuration), 8-bit and 10-bit.
use crate::common;
use super::common;
use craft_media::CodecId;
/// Closed GOPs every 12 frames with B-frames, so decoding from a key packet gives every frame
@@ -1,7 +1,7 @@
//! MPEG-2 video in MPEG-TS (no configuration), and with its sequence header moved from the
//! packets into `extradata`.
use crate::common;
use super::common;
use craft_media::CodecId;
/// Closed GOPs every 12 frames with B-frames (ffmpeg's encoder needs scene change detection off
@@ -1,6 +1,6 @@
//! VP9 in MP4 (a `vpcC` record, which the decoder does not need).
use crate::common;
use super::common;
use craft_media::CodecId;
#[test]