aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/025_nxcomp-fix-ftbfs-against-jpeg9a.full+lite.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/025_nxcomp-fix-ftbfs-against-jpeg9a.full+lite.patch')
-rw-r--r--debian/patches/025_nxcomp-fix-ftbfs-against-jpeg9a.full+lite.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/025_nxcomp-fix-ftbfs-against-jpeg9a.full+lite.patch b/debian/patches/025_nxcomp-fix-ftbfs-against-jpeg9a.full+lite.patch
new file mode 100644
index 000000000..66ca8c33e
--- /dev/null
+++ b/debian/patches/025_nxcomp-fix-ftbfs-against-jpeg9a.full+lite.patch
@@ -0,0 +1,40 @@
+Description: Fix FTBFS when built against libjpeg9a
+Author: Gabriel Marcano <gabemarcano@yahoo.com>
+--- a/nxcomp/Jpeg.cpp 2014-08-19 22:23:36.139072400 -0400
++++ b/nxcomp/Jpeg.cpp 2014-08-19 22:25:24.323182800 -0400
+@@ -440,7 +440,7 @@
+
+ JpegSetSrcManager(&cinfo, compressedData, compressedLen);
+
+- jpeg_read_header(&cinfo, 1);
++ jpeg_read_header(&cinfo, TRUE);
+
+ if (jpegError) goto AbortDecompressJpeg16;
+
+@@ -581,7 +581,7 @@
+
+ JpegSetSrcManager(&cinfo, compressedData, compressedLen);
+
+- jpeg_read_header(&cinfo, 1);
++ jpeg_read_header(&cinfo, TRUE);
+
+ if (jpegError) goto AbortDecompressJpeg24;
+
+@@ -718,7 +718,7 @@
+
+ JpegSetSrcManager(&cinfo, compressedData, compressedLen);
+
+- jpeg_read_header(&cinfo, 1);
++ jpeg_read_header(&cinfo, TRUE);
+
+ if (jpegError) goto AbortDecompressJpeg32;
+
+@@ -833,7 +833,7 @@
+ jpegSrcManager.bytes_in_buffer = jpegBufferLen;
+ jpegSrcManager.next_input_byte = (JOCTET *)jpegBufferPtr;
+
+- return 1;
++ return TRUE;
+ }
+
+ static void JpegSkipInputData(j_decompress_ptr cinfo, long num_bytes)