Disable fancy upsampling (needed for libjpeg >= 7)
authorGregor Jasny <gjasny@googlemail.com>
Sat, 14 Jan 2012 14:43:56 +0000 (15:43 +0100)
committerGregor Jasny <gjasny@googlemail.com>
Sat, 14 Jan 2012 15:06:29 +0000 (16:06 +0100)
Libv4lconvert expects to receive downsampled data. With
jpeglib 7 the default changed to TRUE. So we have to
explicitely request downsampled data after reading the
JPEG header.
Thanks to Guido Vollbeding for pointing this out.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
lib/libv4lconvert/jpeg.c

index 0d581f8..c7e20cc 100644 (file)
@@ -386,6 +386,7 @@ int v4lconvert_decode_jpeg_libjpeg(struct v4lconvert_data *data,
                }
 
                data->cinfo.raw_data_out = TRUE;
+               data->cinfo.do_fancy_upsampling = FALSE;
                jpeg_start_decompress(&data->cinfo);
                /* Make libjpeg errors report that we've got some data */
                data->jerr_errno = EPIPE;