[FFmpeg-cvslog] Fix xcb 32bit pix_fmts: There is no screen transparency.

Carl Eugen Hoyos git at videolan.org
Mon Dec 8 01:12:16 CET 2014


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Dec  8 00:31:01 2014 +0100| [7502e1a3b743e1f02d16f9945c210faf8b902100] | committer: Carl Eugen Hoyos

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7502e1a3b743e1f02d16f9945c210faf8b902100
---

 libavdevice/xcbgrab.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index 6aa1211..f2b9135 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;



More information about the ffmpeg-cvslog mailing list