From 2409fb9d03ed88a68501d1c03e0243fba0c6a61c Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 6 Mar 2014 20:07:03 +0000 Subject: [PATCH] Oops. We need to call start_pass() on the color converter in order to allocate the conversion tables used by the plain C code. --- turbojpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/turbojpeg.c b/turbojpeg.c index 0f0d1109..ec85eb54 100644 --- a/turbojpeg.c +++ b/turbojpeg.c @@ -768,6 +768,7 @@ DLLEXPORT int DLLCALL tjEncodeYUV3(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);