Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jan 12, 2024
1 parent 9dd4901 commit 1fa4ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ pub async fn run(
let mut enc_args = args.to_encoder_args(crf, &probe)?;
enc_args.video_only = video_only;
let has_audio = probe.has_audio;
if let Ok(micros) = probe.duration.as_ref().map(|d| d.as_micros_u64()) {
bar.set_length(micros.max(1));
if let Ok(d) = &probe.duration {
bar.set_length(d.as_micros_u64().max(1));
}

// only downmix if achannels > 3
Expand Down

0 comments on commit 1fa4ffe

Please sign in to comment.