Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(enc-ffmpeg): skip the VideoToolbox keyframe test when software encoding is forced

Richie McIlroy840b3fae6ab3
diff --git a/crates/enc-ffmpeg/src/video/h264.rs b/crates/enc-ffmpeg/src/video/h264.rs
index 71149ac34..6ad7b80bf 100644
--- a/crates/enc-ffmpeg/src/video/h264.rs
+++ b/crates/enc-ffmpeg/src/video/h264.rs
@@ -1695,6 +1695,9 @@ mod self_test_tests {
#[cfg(target_os = "macos")]
#[test]
fn videotoolbox_export_uses_the_default_keyframe_interval() {
+ if force_software_encoder() {
+ return;
+ }
ffmpeg::init().ok();
let config = VideoInfo::from_raw(cap_media_info::RawVideoFormat::Nv12, 1920, 1080, 60);
let videotoolbox_options = |is_export| {