From 20e005e34a752da6a2b97a482adce5ea2a66530a Mon Sep 17 00:00:00 2001
From: jp9000 <obs.jim@gmail.com>
Date: Wed, 3 Sep 2014 21:47:11 -0700
Subject: [PATCH] win-dshow: Swap UYVY and YVYU formats

These values were erroneously using their opposing types for the source
frame format.
---
 plugins/win-dshow/win-dshow.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/win-dshow/win-dshow.cpp b/plugins/win-dshow/win-dshow.cpp
index 56c792d94..40852f8ae 100644
--- a/plugins/win-dshow/win-dshow.cpp
+++ b/plugins/win-dshow/win-dshow.cpp
@@ -136,9 +136,9 @@ static inline video_format ConvertVideoFormat(VideoFormat format)
 	case VideoFormat::XRGB:  return VIDEO_FORMAT_BGRX;
 	case VideoFormat::I420:  return VIDEO_FORMAT_I420;
 	case VideoFormat::NV12:  return VIDEO_FORMAT_NV12;
-	case VideoFormat::YVYU:  return VIDEO_FORMAT_UYVY;
+	case VideoFormat::YVYU:  return VIDEO_FORMAT_YVYU;
 	case VideoFormat::YUY2:  return VIDEO_FORMAT_YUY2;
-	case VideoFormat::UYVY:  return VIDEO_FORMAT_YVYU;
+	case VideoFormat::UYVY:  return VIDEO_FORMAT_UYVY;
 	case VideoFormat::HDYC:  return VIDEO_FORMAT_UYVY;
 	case VideoFormat::MJPEG: return VIDEO_FORMAT_YUY2;
 	default:                 return VIDEO_FORMAT_NONE;
-- 
GitLab