From db6d8fca591c924ba3da8ef525925b92e261e66a Mon Sep 17 00:00:00 2001 From: DRC Date: Mon, 8 Jun 2015 18:31:34 +0000 Subject: [PATCH] Now that the TurboJPEG API is reporting libjpeg warnings as errors, an "Invalid SOS parameters for sequential JPEG" warning surfaced in tjDecodeYUV*(). This was caused by the Se member of jpeg_decompress_struct being set to 0 (it is normally set to a non-zero value when the start-of-scan markers are read, but there are no SOS markers in this case, because we're not actually decompressing a JPEG file.) git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.4.x@1564 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/turbojpeg.c b/turbojpeg.c index ec03aff6..5ba9a19b 100644 --- a/turbojpeg.c +++ b/turbojpeg.c @@ -1568,6 +1568,7 @@ DLLEXPORT int DLLCALL tjDecodeYUVPlanes(tjhandle handle, retval=-1; goto bailout; } dinfo->do_fancy_upsampling=FALSE; + dinfo->Se=DCTSIZE2-1; jinit_master_decompress(dinfo); (*dinfo->upsample->start_pass)(dinfo);