Add macOS package manager search paths for pkg-config (#8)

This commit is contained in:
Mikhail Katychev
2023-03-23 12:11:48 -03:00
committed by GitHub
parent 0d11595259
commit fa2b8d13ad
5 changed files with 29 additions and 7 deletions

View File

@ -59,7 +59,7 @@ fn main() -> Result<(), ffmpeg::Error> {
}
fn save_file(frame: &Video, index: usize) -> std::result::Result<(), std::io::Error> {
let mut file = File::create(format!("frame{}.ppm", index))?;
let mut file = File::create(format!("frame{index}.ppm"))?;
file.write_all(format!("P6\n{} {}\n255\n", frame.width(), frame.height()).as_bytes())?;
file.write_all(frame.data(0))?;
Ok(())