summaryrefslogtreecommitdiff
path: root/jcmarker.c
diff options
context:
space:
mode:
authorGuido Vollbeding <guido@jpegclub.org>1998-03-28 00:00:00 +0000
committerDRC <information@libjpeg-turbo.org>2015-07-27 14:40:46 -0500
commit1e247ac854f8e33682bcfea475f6bccc42377208 (patch)
treefabc3ff2ae389709298738bb287f8b9ea96b1ee4 /jcmarker.c
parent5ead57a34a398aa798f35bd7a6abad19b2e453e2 (diff)
The Independent JPEG Group's JPEG software v6b with arithmetic coding support
Diffstat (limited to 'jcmarker.c')
-rw-r--r--jcmarker.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/jcmarker.c b/jcmarker.c
index 3d1e6c6..2d7bdc3 100644
--- a/jcmarker.c
+++ b/jcmarker.c
@@ -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 */