diff options
author | Guido Vollbeding <jpeg-info@uc.ag> | 2010-02-28 00:00:00 +0000 |
---|---|---|
committer | DRC <information@libjpeg-turbo.org> | 2015-07-27 13:46:36 -0500 |
commit | f18f81b7e20cf993786a3348960ab2428762deee (patch) | |
tree | 5931744282be16ee791b0ec43b9289aeb00b17e2 /jcapimin.c | |
parent | 989630f70cf1af69ebfefca8910d1647bf189712 (diff) |
The Independent JPEG Group's JPEG software v8a
Diffstat (limited to 'jcapimin.c')
-rw-r--r-- | jcapimin.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,7 @@ * jcapimin.c * * Copyright (C) 1994-1998, Thomas G. Lane. + * Modified 2003-2010 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -73,6 +74,11 @@ jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize) cinfo->ac_huff_tbl_ptrs[i] = NULL; } + /* Must do it here for emit_dqt in case jpeg_write_tables is used */ + cinfo->block_size = DCTSIZE; + cinfo->natural_order = jpeg_natural_order; + cinfo->lim_Se = DCTSIZE2-1; + cinfo->script_space = NULL; cinfo->input_gamma = 1.0; /* in case application forgets */ |