Skip to content

Commit e171607

Browse files
committed
clippy
1 parent fae0156 commit e171607

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/video-decode/src/ffmpeg.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ fn query_d3d11_video_decoder_capabilities() -> HwDecoderCapabilities {
103103

104104
if let Ok(config_count) =
105105
unsafe { video_device.GetVideoDecoderConfigCount(&desc_4k) }
106+
&& config_count > 0
106107
{
107-
if config_count > 0 {
108-
supports_hw = true;
109-
}
108+
supports_hw = true;
110109
}
111110
}
112111
}

0 commit comments

Comments
 (0)