Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Remove UYVY422 mapping to DXGI_FORMAT_YUY2

Richie McIlroy5fde381cafed
diff --git a/crates/frame-converter/src/d3d11.rs b/crates/frame-converter/src/d3d11.rs
index 765e2765e..e3617939d 100644
--- a/crates/frame-converter/src/d3d11.rs
+++ b/crates/frame-converter/src/d3d11.rs
@@ -499,7 +499,6 @@ fn pixel_to_dxgi(pixel: Pixel) -> Result<DXGI_FORMAT, ConvertError> {
match pixel {
Pixel::NV12 => Ok(DXGI_FORMAT_NV12),
Pixel::YUYV422 => Ok(DXGI_FORMAT_YUY2),
- Pixel::UYVY422 => Ok(DXGI_FORMAT_YUY2),
_ => Err(ConvertError::UnsupportedFormat(pixel, Pixel::NV12)),
}
}