Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed May 20, 2024
1 parent cb37afc commit 68dd5f7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/audio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,24 +179,24 @@ impl AudioHandle {
} else {
let audio_codec_id = match args.audio_codec {
crate::AudioCodec::Auto => octx
.format()
.format()
.codec(&args.output, ffmpeg::media::Type::Audio),
crate::AudioCodec::Aac => Id::AAC,
crate::AudioCodec::Mp3 => Id::MP3,
crate::AudioCodec::Flac => Id::FLAC,
crate::AudioCodec::Opus => Id::OPUS,
};

if audio_codec_id == Id::None {
bail!(
"Container format {} does not support audio!",
octx.format().name()
);
}
if audio_codec_id == Id::None {
bail!(
"Container format {} does not support audio!",
octx.format().name()
);
}

ffmpeg::encoder::find(audio_codec_id)
.unwrap()
.audio()
.unwrap()
.audio()
.unwrap()
};

Expand Down

0 comments on commit 68dd5f7

Please sign in to comment.