OSDN Git Service

Fix xcb 32bit pix_fmts: There is no screen transparency.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 7 Dec 2014 23:31:01 +0000 (00:31 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 7 Dec 2014 23:31:01 +0000 (00:31 +0100)
libavdevice/xcbgrab.c

index 6aa1211..f2b9135 100644 (file)
@@ -455,11 +455,11 @@ static int pixfmt_from_pixmap_format(AVFormatContext *s, int depth,
             switch (depth) {
             case 32:
                 if (fmt->bits_per_pixel == 32)
-                    *pix_fmt = AV_PIX_FMT_ARGB;
+                    *pix_fmt = AV_PIX_FMT_0RGB;
                 break;
             case 24:
                 if (fmt->bits_per_pixel == 32)
-                    *pix_fmt = AV_PIX_FMT_RGB32;
+                    *pix_fmt = AV_PIX_FMT_0RGB32;
                 else if (fmt->bits_per_pixel == 24)
                     *pix_fmt = AV_PIX_FMT_RGB24;
                 break;