]> granicus.if.org Git - libjpeg-turbo/commitdiff
Oops. We need to call start_pass() on the color converter in order to allocate the...
authorDRC <dcommander@users.sourceforge.net>
Thu, 6 Mar 2014 20:03:37 +0000 (20:03 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 6 Mar 2014 20:03:37 +0000 (20:03 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@1137 632fc199-4ca6-4c93-a231-07263d6284db

turbojpeg.c

index 6a987f7c72ef297409b6530d74b5fe6f726b103d..a507565a36ef48b8ba6ae32714f5d67be8c3a2a8 100644 (file)
@@ -547,6 +547,7 @@ DLLEXPORT int DLLCALL tjEncodeYUV2(tjhandle handle, unsigned char *srcBuf,
        jinit_c_master_control(cinfo, FALSE);
        jinit_color_converter(cinfo);
        jinit_downsampler(cinfo);
+       (*cinfo->cconvert->start_pass)(cinfo);
 
        pw=PAD(width, cinfo->max_h_samp_factor);
        ph=PAD(height, cinfo->max_v_samp_factor);