libv4l: add detection for short frames
authorHans de Goede <hdegoede@redhat.com>
Fri, 7 May 2010 09:57:50 +0000 (11:57 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 7 May 2010 09:57:50 +0000 (11:57 +0200)
commit811bbe21e5e4bef7c65afbb4ab259dfab649ee5a
tree08e6dc031e6d88b475cecf71d03526208eb9c9c1
parentc8b37c4e9d7cbfb3f974fa24cbe07d80364ce9a1
libv4l: add detection for short frames

Sometimes cam generate short frames (esp. at the beginning of the stream),
detect this and retry a number of times. If retrying fails, pass allong
the short frame as it is better then nothing.

This patch also cleans up the JPEG decoding error handling code to use
the same mechanism.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/libv4l2/libv4l2.c
lib/libv4lconvert/libv4lconvert-priv.h
lib/libv4lconvert/libv4lconvert.c