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-02-25 13:01:55 -06:00
parent 9a2f846cd1
commit 97ba4e806b

View file

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