summaryrefslogtreecommitdiff
path: root/multimedia/mpeg_encode/patches/patch-ab
blob: b593925bbac532b9aae44b3b8063ebf82a4e0803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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;