Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

clippy

Richie McIlroye171607f7f18
diff --git a/crates/video-decode/src/ffmpeg.rs b/crates/video-decode/src/ffmpeg.rs
index a033332f0..354c71e93 100644
--- a/crates/video-decode/src/ffmpeg.rs
+++ b/crates/video-decode/src/ffmpeg.rs
@@ -103,10 +103,9 @@ fn query_d3d11_video_decoder_capabilities() -> HwDecoderCapabilities {
if let Ok(config_count) =
unsafe { video_device.GetVideoDecoderConfigCount(&desc_4k) }
+ && config_count > 0
{
- if config_count > 0 {
- supports_hw = true;
- }
+ supports_hw = true;
}
}
}