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 @@
14 esyslog("ERROR: out of memory");
19 cinfo->dest->next_output_byte = jcd->mem + Used;
20 cinfo->dest->free_in_buffer = jcd->size - Used;
29 static void JpegCompressTermDestination(j_compress_ptr cinfo)
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);