Ticket #52720: abiword-jpeg-patch.diff
File abiword-jpeg-patch.diff, 876 bytes (added by Crosmatron, 8 years ago) |
---|
-
src/af/util/xp/ut_jpeg.cpp
old new 102 102 src->pub.next_input_byte = src->sourceBuf->getPointer (src->pos); 103 103 src->pub.bytes_in_buffer = src->sourceBuf->getLength (); 104 104 105 return TRUE;105 return (boolean)true; 106 106 } 107 107 108 108 /* … … 161 161 /* set the data source */ 162 162 _JPEG_ByteBufSrc (&cinfo, pBB); 163 163 164 jpeg_read_header(&cinfo, TRUE);164 jpeg_read_header(&cinfo, (boolean)true); 165 165 jpeg_start_decompress(&cinfo); 166 166 iImageWidth = cinfo.output_width; 167 167 iImageHeight = cinfo.output_height; … … 189 189 /* set the data source */ 190 190 _JPEG_ByteBufSrc (&cinfo, pBB); 191 191 192 jpeg_read_header(&cinfo, TRUE);192 jpeg_read_header(&cinfo, (boolean)true); 193 193 jpeg_start_decompress(&cinfo); 194 194 195 195 int row_stride = cinfo.output_width * cinfo.output_components;