libv4lconvert: Properly handle video processing when src fmt == dest fmt
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Dec 2010 22:36:40 +0000 (23:36 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 28 Dec 2010 22:36:40 +0000 (23:36 +0100)
commit4f2fbe4bc265eb2deb9de5e11625e7267d2c97fc
tree0ad96584a65919765b0af40fe746ea996dacde66
parente9d7e5a1e880a78aaed3ba56e0380c766cafbd97
libv4lconvert: Properly handle video processing when src fmt == dest fmt

When video processing is enabled (ie software whitebalancing) and
the src_fmt == dst_fmt (ie rgb24) and not cropping, flipping, or rotating
the video processing would be done directly on the src data and the
data would never get copied to the destination buffer. This patch fixes
this.

Signed-off-By: Hans de Goede <hdegoede@redhat.com>
lib/libv4lconvert/libv4lconvert.c