Add macOS package manager search paths for pkg-config (#8)
This commit is contained in:
@ -16,7 +16,7 @@ fn main() {
|
||||
println!("\tend: {}", chapter.end());
|
||||
|
||||
for (k, v) in chapter.metadata().iter() {
|
||||
println!("\t{}: {}", k, v);
|
||||
println!("\t{k}: {v}");
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,11 +49,11 @@ fn main() {
|
||||
println!("\tstart: {}", chapter.start());
|
||||
println!("\tend: {}", chapter.end());
|
||||
for (k, v) in chapter.metadata().iter() {
|
||||
println!("\t{}: {}", k, v);
|
||||
println!("\t{k}: {v}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Err(error) => println!("error: {}", error),
|
||||
Err(error) => println!("error: {error}"),
|
||||
}
|
||||
}
|
||||
|
@ -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(())
|
||||
|
@ -8,7 +8,7 @@ fn main() -> Result<(), ffmpeg::Error> {
|
||||
match ffmpeg::format::input(&env::args().nth(1).expect("missing file")) {
|
||||
Ok(context) => {
|
||||
for (k, v) in context.metadata().iter() {
|
||||
println!("{}: {}", k, v);
|
||||
println!("{k}: {v}");
|
||||
}
|
||||
|
||||
if let Some(stream) = context.streams().best(ffmpeg::media::Type::Video) {
|
||||
@ -83,7 +83,7 @@ fn main() -> Result<(), ffmpeg::Error> {
|
||||
}
|
||||
}
|
||||
|
||||
Err(error) => println!("error: {}", error),
|
||||
Err(error) => println!("error: {error}"),
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ fn main() {
|
||||
)
|
||||
.expect("invalid x264 options string");
|
||||
|
||||
eprintln!("x264 options: {:?}", x264_opts);
|
||||
eprintln!("x264 options: {x264_opts:?}");
|
||||
|
||||
ffmpeg::init().unwrap();
|
||||
log::set_level(log::Level::Info);
|
||||
|
Reference in New Issue
Block a user