diff options
Diffstat (limited to 'src/libjpeg/jctrans.c')
-rw-r--r-- | src/libjpeg/jctrans.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/libjpeg/jctrans.c b/src/libjpeg/jctrans.c index 0e6d707..74bb12c 100644 --- a/src/libjpeg/jctrans.c +++ b/src/libjpeg/jctrans.c @@ -167,16 +167,9 @@ transencode_master_selection (j_compress_ptr cinfo, /* Entropy encoding: either Huffman or arithmetic coding. */ if (cinfo->arith_code) { - ERREXIT(cinfo, JERR_ARITH_NOTIMPL); + jinit_arith_encoder(cinfo); } 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); + jinit_huff_encoder(cinfo); } /* We need a special coefficient buffer controller. */ |