diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-12-08 00:31:01 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-12-08 00:31:01 +0100 |
commit | 7502e1a3b743e1f02d16f9945c210faf8b902100 (patch) | |
tree | 96d7f25a6e6b01a0e70d7f1a78dbd8451f403c3b /libavdevice | |
parent | 72c984432ecc2f906214ad2e53293bd301dc12ac (diff) | |
download | ffmpeg-7502e1a3b743e1f02d16f9945c210faf8b902100.tar.gz |
Fix xcb 32bit pix_fmts: There is no screen transparency.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/xcbgrab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 6aa1211d99..f2b913508a 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -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; |