forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

mod.rs18 lines, 533 bytesHistoryRawDownload
1//! Helpers shared by the ec-aac test binaries that need them: `oracle`,
2//! `obs_real_content`, `sbr_real_library` and the merged `it` binary.
3
4use std::path::{Path, PathBuf};
5use std::process::Command;
6
7pub fn have_ffmpeg() -> bool {
8 Command::new("ffmpeg")
9 .arg("-version")
10 .output()
11 .map(|o| o.status.success())
12 .unwrap_or(false)
13}
14
15#[allow(dead_code)] // not used by the sbr_real_library binary
16pub fn fixtures() -> PathBuf {
17 Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures")
18}