2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00
This commit is contained in:
asonix 2022-09-30 20:02:46 -05:00
parent 0691e86b65
commit 85c5ce955d
2 changed files with 3 additions and 1 deletions

View file

@ -266,7 +266,7 @@ pub(crate) async fn trancsocde_bytes(
tmp_one.close().await?;
let output_format = video_codec.to_output_format();
let audio_codec = audio_codec.unwrap_or(output_format.default_audio_codec());
let audio_codec = audio_codec.unwrap_or_else(|| output_format.default_audio_codec());
let process = if permit_audio {
Process::run(

View file

@ -12,6 +12,7 @@ use std::path::PathBuf;
use tokio::io::AsyncReadExt;
use tracing::Instrument;
#[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip(hash))]
pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
repo: &R,
@ -42,6 +43,7 @@ pub(crate) async fn generate<R: FullRepo, S: Store + 'static>(
Ok((details, bytes))
}
#[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip(hash))]
async fn process<R: FullRepo, S: Store + 'static>(
repo: &R,