0001-libjpeg.patch 1.2 KB

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