summaryrefslogtreecommitdiff
path: root/jdtrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'jdtrans.c')
-rw-r--r--jdtrans.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/jdtrans.c b/jdtrans.c
index 6c0ab71..7a3b268 100644
--- a/jdtrans.c
+++ b/jdtrans.c
@@ -100,9 +100,9 @@ transdecode_master_selection (j_decompress_ptr cinfo)
cinfo->buffered_image = TRUE;
/* Entropy decoding: either Huffman or arithmetic coding. */
- if (cinfo->arith_code) {
- ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
- } else {
+ if (cinfo->arith_code)
+ jinit_arith_decoder(cinfo);
+ else {
if (cinfo->progressive_mode) {
#ifdef D_PROGRESSIVE_SUPPORTED
jinit_phuff_decoder(cinfo);