This commit is contained in:
asonix 2023-02-25 13:01:55 -06:00
parent 9a2f846cd1
commit 97ba4e806b
1 changed files with 8 additions and 8 deletions

View File

@ -90,14 +90,14 @@ impl TranscodeOptions {
}
const fn supports_alpha(&self) -> bool {
match self.output {
matches!(
self.output,
TranscodeOutputOptions::Gif
| TranscodeOutputOptions::Video {
video_codec: VideoCodec::Vp8 | VideoCodec::Vp9,
..
} => true,
_ => false,
}
| TranscodeOutputOptions::Video {
video_codec: VideoCodec::Vp8 | VideoCodec::Vp9,
..
}
)
}
fn execute(
@ -368,7 +368,7 @@ async fn alpha_pixel_formats() -> Result<HashSet<String>, Error> {
return None;
}
if !format.ends_with("1") {
if !format.ends_with('1') {
return None;
}