summaryrefslogtreecommitdiff
path: root/media-libs/libopenraw/files/libopenraw-0.1.0-jpeg-9a.patch
blob: e5156a953211a7856a93834d1f9c5bffa791cee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
https://bugs.gentoo.org/520888
https://sourceforge.net/p/fink/package-submissions/4336/


--- a/lib/jfifcontainer.cpp
+++ b/lib/jfifcontainer.cpp
@@ -157,7 +157,7 @@
   m_file->seek(0, SEEK_SET);
 
   if (::setjmp(m_jpegjmp) == 0) {
-    int ret = JPEG::jpeg_read_header(&m_cinfo, TRUE);
+    int ret = JPEG::jpeg_read_header(&m_cinfo, JPEG::TRUE);
     //Trace(DEBUG1) << "jpeg_read_header " << ret << "\n";
 
     JPEG::jpeg_calc_output_dimensions(&m_cinfo);
@@ -194,7 +194,7 @@
     src->pub.next_input_byte = nullptr;
     src->pub.bytes_in_buffer = 0;
   }
-  return TRUE;
+  return JPEG::TRUE;
 }