aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/x11grab.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-13 02:02:06 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-11-13 02:02:06 +0100
commitb3c67372a522bfc57d783dfe839a07028d0d8e13 (patch)
treec10e71ef0a16f6c23eb0d6c31f6bfd678e1ca649 /libavdevice/x11grab.c
parentbe97e7b9c283b908f442436abaae61ef31c6a3bc (diff)
downloadffmpeg-b3c67372a522bfc57d783dfe839a07028d0d8e13.tar.gz
Force opaque alpha channel for 32bit x11grab image.
Fixes ticket #163. Approved-by: Clemens Fruhwirth Approved-by: Edouard Gomez
Diffstat (limited to 'libavdevice/x11grab.c')
-rw-r--r--libavdevice/x11grab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index c2a67d7e62..2ecf88c2d5 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -537,6 +537,8 @@ x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
av_log (s1, AV_LOG_INFO, "XGetZPixmap() failed\n");
}
}
+ if (image->bits_per_pixel == 32)
+ XAddPixel(image, 0xFF000000);
if (s->draw_mouse) {
paint_mouse_pointer(image, s);