OSDN Git Service

Make 32bit RGB dshow input opaque.
authorDon Moir <donmoir@comcast.net>
Sat, 8 Mar 2014 12:46:05 +0000 (13:46 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 8 Mar 2014 12:46:05 +0000 (13:46 +0100)
libavdevice/dshow.c

index 1d500bd..96ca813 100644 (file)
@@ -89,7 +89,7 @@ static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD biBitCount)
             case 24:
                 return AV_PIX_FMT_BGR24;
             case 32:
-                return AV_PIX_FMT_RGB32;
+                return AV_PIX_FMT_0RGB32;
         }
     }
     return avpriv_find_pix_fmt(ff_raw_pix_fmt_tags, biCompression); // all others