2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00
This commit is contained in:
asonix 2023-11-09 18:26:57 -06:00
parent f61dac8187
commit 15189d293b
3 changed files with 3 additions and 5 deletions

View file

@ -136,7 +136,7 @@ where
if input_format.coalesce() { if input_format.coalesce() {
args.push("-coalesce".as_ref()); args.push("-coalesce".as_ref());
} }
args.extend(process_args.iter().map(|s| AsRef::<OsStr>::as_ref(s))); args.extend(process_args.iter().map(AsRef::<OsStr>::as_ref));
if let Some(quality) = &quality { if let Some(quality) = &quality {
args.extend(["-quality".as_ref(), quality.as_ref()] as [&OsStr; 2]); args.extend(["-quality".as_ref(), quality.as_ref()] as [&OsStr; 2]);
} }

View file

@ -128,9 +128,7 @@ impl Process {
let res = tracing::trace_span!(parent: None, "Create command", %command).in_scope(|| { let res = tracing::trace_span!(parent: None, "Create command", %command).in_scope(|| {
Self::spawn( Self::spawn(
command, command,
Command::new(command) Command::new(command).args(args).envs(envs.iter().copied()),
.args(args)
.envs(envs.into_iter().copied()),
timeout, timeout,
) )
}); });

View file

@ -92,7 +92,7 @@ async fn transcode_files(
"-c:v".as_ref(), "-c:v".as_ref(),
output_format.ffmpeg_video_codec().as_ref(), output_format.ffmpeg_video_codec().as_ref(),
"-crf".as_ref(), "-crf".as_ref(),
&crf.as_ref(), crf.as_ref(),
] as [&OsStr; 8]); ] as [&OsStr; 8]);
if output_format.is_vp9() { if output_format.is_vp9() {