python-cryptography: bump to version 1.7.2
[buildroot-gz.git] / package / vdr / 0002-libjpeg.patch
blobdbd1f12838aae48b6f734e045ef1762700b2422e
1 Fix compilation with libjpeg
3 Patch inspired by upstream board:
4 http://www.vdr-portal.de/board16-video-disk-recorder/board4-vdr-installation/p1189959-vdr-2-05-mit-libjpeg-9a-kommt-nicht-aus/#post1189959
6 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
8 diff -uNr vdr-2.3.1.org/tools.c vdr-2.3.1/tools.c
9 --- vdr-2.3.1.org/tools.c 2015-09-10 15:17:55.000000000 +0200
10 +++ vdr-2.3.1/tools.c 2016-08-01 06:37:44.000000000 +0200
11 @@ -1254,15 +1254,15 @@
13 else {
14 esyslog("ERROR: out of memory");
15 - return false;
16 + return FALSE;
18 if (jcd->mem) {
19 cinfo->dest->next_output_byte = jcd->mem + Used;
20 cinfo->dest->free_in_buffer = jcd->size - Used;
21 - return true;
22 + return TRUE;
25 - return false;
26 + return FALSE;
29 static void JpegCompressTermDestination(j_compress_ptr cinfo)
30 @@ -1307,8 +1307,8 @@
31 cinfo.in_color_space = JCS_RGB;
33 jpeg_set_defaults(&cinfo);
34 - jpeg_set_quality(&cinfo, Quality, true);
35 - jpeg_start_compress(&cinfo, true);
36 + jpeg_set_quality(&cinfo, Quality, TRUE);
37 + jpeg_start_compress(&cinfo, TRUE);
39 int rs = Width * 3;
40 JSAMPROW rp[Height];