Browse Source

Fix xcb 32bit pix_fmts: There is no screen transparency.

tags/n2.6
Carl Eugen Hoyos 10 years ago
parent
commit
7502e1a3b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavdevice/xcbgrab.c

+ 2
- 2
libavdevice/xcbgrab.c View File

@@ -455,11 +455,11 @@ static int pixfmt_from_pixmap_format(AVFormatContext *s, int depth,
switch (depth) { switch (depth) {
case 32: case 32:
if (fmt->bits_per_pixel == 32) if (fmt->bits_per_pixel == 32)
*pix_fmt = AV_PIX_FMT_ARGB;
*pix_fmt = AV_PIX_FMT_0RGB;
break; break;
case 24: case 24:
if (fmt->bits_per_pixel == 32) 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) else if (fmt->bits_per_pixel == 24)
*pix_fmt = AV_PIX_FMT_RGB24; *pix_fmt = AV_PIX_FMT_RGB24;
break; break;


Loading…
Cancel
Save