OSDN Git Service

vfwcap: support MJPG compressed streams.
authorNash Tsai <nash.tsai@gmail.com>
Tue, 23 Feb 2010 16:49:16 +0000 (16:49 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Tue, 23 Feb 2010 16:49:16 +0000 (16:49 +0000)
Patch by Nash Tsai <nash dot tsai at gmail dot com>

Originally committed as revision 22004 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/vfwcap.c

index 4d07664..bd7290f 100644 (file)
@@ -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;
 }