1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Force opaque alpha channel for 32bit x11grab image.

Fixes ticket #163.
Approved-by: Clemens Fruhwirth
Approved-by: Edouard Gomez
This commit is contained in:
Carl Eugen Hoyos 2011-11-13 02:02:06 +01:00
parent be97e7b9c2
commit b3c67372a5

View File

@ -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);