From e24080f00ea9011901fb0fe48908560565fed832 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 10 Mar 2010 05:25:06 +0000 Subject: [PATCH] vfwcap: Add support for UYVY pixel format. Originally committed as revision 22424 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavdevice/vfwcap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index bd7290fe96..91714571cd 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -46,6 +46,8 @@ struct vfw_ctx { static enum PixelFormat vfw_pixfmt(DWORD biCompression, WORD biBitCount) { switch(biCompression) { + case MKTAG('U', 'Y', 'V', 'Y'): + return PIX_FMT_UYVY422; case MKTAG('Y', 'U', 'Y', '2'): return PIX_FMT_YUYV422; case MKTAG('I', '4', '2', '0'):