diff options
author | Guido Vollbeding <guido@jpegclub.org> | 1998-03-28 00:00:00 +0000 |
---|---|---|
committer | DRC <information@libjpeg-turbo.org> | 2015-07-27 14:40:46 -0500 |
commit | 1e247ac854f8e33682bcfea475f6bccc42377208 (patch) | |
tree | fabc3ff2ae389709298738bb287f8b9ea96b1ee4 /jcmarker.c | |
parent | 5ead57a34a398aa798f35bd7a6abad19b2e453e2 (diff) |
The Independent JPEG Group's JPEG software v6b with arithmetic coding support
Diffstat (limited to 'jcmarker.c')
-rw-r--r-- | jcmarker.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -529,7 +529,10 @@ write_frame_header (j_compress_ptr cinfo) /* Emit the proper SOF marker */ if (cinfo->arith_code) { - emit_sof(cinfo, M_SOF9); /* SOF code for arithmetic coding */ + if (cinfo->progressive_mode) + emit_sof(cinfo, M_SOF10); /* SOF code for progressive arithmetic */ + else + emit_sof(cinfo, M_SOF9); /* SOF code for sequential arithmetic */ } else { if (cinfo->progressive_mode) emit_sof(cinfo, M_SOF2); /* SOF code for progressive Huffman */ |