libv4lconvert: fix RGB32 conversion
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 19 Jul 2014 07:18:35 +0000 (09:18 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sun, 20 Jul 2014 15:54:52 +0000 (17:54 +0200)
commitd6f88804f0c3d5a59aaa9cca9ff546ce2e1396ed
tree6d78ba3e89d00ab3bec3149f8c9068b50847bee9
parentd3dfeb7e4a79ddbdd8d7fa592a792e23837d8ffc
libv4lconvert: fix RGB32 conversion

The RGB32 formats start with an alpha byte in memory. So before calling the
v4lconvert_rgb32_to_rgb24 or v4lconvert_rgb24_to_yuv420 function skip that initial
alpha byte so the src pointer is aligned with the first color component, since
that is what those functions expect.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
lib/libv4lconvert/libv4lconvert.c