Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Now that the TurboJPEG API is reporting libjpeg warnings as errors, a…
…n "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
  • Loading branch information
dcommander committed Jun 8, 2015
1 parent d0fc58e commit a8af724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions turbojpeg.c
Expand Up @@ -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);

Expand Down

0 comments on commit a8af724

Please sign in to comment.