libv4lconvert: retry with another frame on JPEG header decode errors
authorHans de Goede <hdegoede@redhat.com>
Tue, 9 Aug 2011 09:14:54 +0000 (11:14 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 14 Sep 2011 09:20:46 +0000 (11:20 +0200)
commit92de14bdd92de99813dc3dd3a36b3b6234afeae6
treee76760962650b80fa1238b4e41b283099334520e
parentb87f175386122d8879520fac82a66f6ad3f43d43
libv4lconvert: retry with another frame on JPEG header decode errors

Some cameras (quantas based ones) sometimes (1 every 100 frames or so)
send a frame with a corrupt header. This patch changes libv4lconvert's
behavior on JPEG header decode errors to return EAGAIN, which will
make libv4l2 get another frame and try decoding that (up to 4 times).

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