diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-02-02 13:29:14 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-02-02 13:29:14 +0100 |
commit | de05e41bfc0ae32b93e45d2b4c215d89f06f3d8f (patch) | |
tree | 98729ce25519df24a335b861b1feba446ff16e72 /libavdevice | |
parent | b8b77abe92600eef59fea5a9d061d231e89901b8 (diff) | |
download | ffmpeg-de05e41bfc0ae32b93e45d2b4c215d89f06f3d8f.tar.gz |
Use the correct pix_fmt for 32bit x11grab.
Remove adding a constant value to each pixel to make it opaque.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/x11grab.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 722f00ff0d..80a1baf653 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -295,7 +295,7 @@ x11grab_read_header(AVFormatContext *s1) } break; case 32: - input_pixfmt = PIX_FMT_RGB32; + input_pixfmt = PIX_FMT_0RGB32; break; default: av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel); @@ -539,8 +539,6 @@ 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); |