diff options
Diffstat (limited to 'jcinit.c')
-rw-r--r-- | jcinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,9 +41,9 @@ 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->arith_code) + jinit_arith_encoder(cinfo); + else { if (cinfo->progressive_mode) { #ifdef C_PROGRESSIVE_SUPPORTED jinit_phuff_encoder(cinfo); |