Skip to content
Snippets Groups Projects
Commit 7502e1a3 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos
Browse files

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

parent 72c98443
No related branches found
No related tags found
No related merge requests found
...@@ -455,11 +455,11 @@ static int pixfmt_from_pixmap_format(AVFormatContext *s, int depth, ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment