From d7a4961e5353ff983bd7b53acf56ab8076dfaeba Mon Sep 17 00:00:00 2001 From: Nash Tsai Date: Tue, 23 Feb 2010 16:49:16 +0000 Subject: [PATCH] vfwcap: support MJPG compressed streams. Patch by Nash Tsai Originally committed as revision 22004 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavdevice/vfwcap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index 4d07664094..bd7290fe96 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -74,6 +74,9 @@ static enum CodecID vfw_codecid(DWORD biCompression) switch(biCompression) { case MKTAG('d', 'v', 's', 'd'): return CODEC_ID_DVVIDEO; + case MKTAG('M', 'J', 'P', 'G'): + case MKTAG('m', 'j', 'p', 'g'): + return CODEC_ID_MJPEG; } return CODEC_ID_NONE; }