22 lines
682 B
Text
22 lines
682 B
Text
$NetBSD: patch-ab,v 1.2 2009/09/01 18:23:28 hasso Exp $
|
|
|
|
--- jpeg.c.orig 1995-08-05 02:35:07 +0300
|
|
+++ jpeg.c 2009-09-01 21:00:50 +0300
|
|
@@ -77,7 +77,7 @@
|
|
|
|
/* make it happier.... */
|
|
#undef DCTSIZE2
|
|
-#include "jpeg/jpeglib.h"
|
|
+#include "jpeglib.h" /* Use system header! */
|
|
|
|
|
|
#define HEADER_SIZE 607 /*JFIF header size used on output images*/
|
|
@@ -514,7 +514,7 @@ ReadJPEG(mf, fp)
|
|
#ifdef JPEG4
|
|
buffer_height = 8; /* could be 2, 4,8 rows high */
|
|
#else
|
|
- buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_scaled_size;
|
|
+ buffer_height = cinfo.max_v_samp_factor * cinfo.min_DCT_v_scaled_size;
|
|
#endif
|
|
|
|
for(cp=0,compptr = cinfo.comp_info;cp<cinfo.num_components;
|