]> git.sesse.net Git - ffmpeg/commit
lavd/x11grab: check 32-bits color masks.
authorNicolas George <george@nsup.org>
Tue, 15 Jul 2014 14:04:49 +0000 (16:04 +0200)
committerNicolas George <george@nsup.org>
Thu, 17 Jul 2014 16:11:56 +0000 (18:11 +0200)
commit16c6795465fd7663792fe535256c760560714863
treed393a11916ae7a590d2f6d44a32148987fc37fc7
parent36fbe3c789744ad866f292a942bfb3b5d8417e77
lavd/x11grab: check 32-bits color masks.

The X11 servers by VNC, at 32-bits depths, has the following masks:
R:0x000007ff G:0x003ff800 B:0xffc00000
This is not compatible with AV_PIX_FMT_0RGB32, and the result
is success with completely wrong colors.
libavdevice/x11grab.c