From 1216e9530fe541df6b95ffa39d00df9919cee4fa Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 15 Feb 2011 15:25:53 +0000 Subject: Update JPEG library to v8b. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- jpeg/jcinit.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'jpeg/jcinit.c') diff --git a/jpeg/jcinit.c b/jpeg/jcinit.c index 5efffe331..0ba310f21 100644 --- a/jpeg/jcinit.c +++ b/jpeg/jcinit.c @@ -41,17 +41,10 @@ jinit_compress_master (j_compress_ptr cinfo) /* Forward DCT */ jinit_forward_dct(cinfo); /* Entropy encoding: either Huffman or arithmetic coding. */ - if (cinfo->arith_code) { - ERREXIT(cinfo, JERR_ARITH_NOTIMPL); - } else { - if (cinfo->progressive_mode) { -#ifdef C_PROGRESSIVE_SUPPORTED - jinit_phuff_encoder(cinfo); -#else - ERREXIT(cinfo, JERR_NOT_COMPILED); -#endif - } else - jinit_huff_encoder(cinfo); + if (cinfo->arith_code) + jinit_arith_encoder(cinfo); + else { + jinit_huff_encoder(cinfo); } /* Need a full-image coefficient buffer in any multi-pass mode. */ -- cgit v1.2.3