Commit d2f069375727b8a95c78e2fc752b9c9d05e14697
1 parent
7242adca
Use C API correctly for jpeglib (fixes #1424)
Showing
2 changed files
with
5 additions
and
1 deletions
libqpdf/QPDFJob.cc
| ... | ... | @@ -123,7 +123,7 @@ ImageOptimizer::ImageOptimizer( |
| 123 | 123 | // Recompress existing jpeg. |
| 124 | 124 | decode_level = qpdf_dl_all; |
| 125 | 125 | config = Pl_DCT::make_compress_config( |
| 126 | - [quality](jpeg_compress_struct* cinfo) { jpeg_set_quality(cinfo, quality, false); }); | |
| 126 | + [quality](jpeg_compress_struct* cinfo) { jpeg_set_quality(cinfo, quality, FALSE); }); | |
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | ... | ... |
manual/release-notes.rst
| ... | ... | @@ -46,6 +46,10 @@ more detail. |
| 46 | 46 | |
| 47 | 47 | - Fix Android build issues. |
| 48 | 48 | |
| 49 | + - Fix incorrect use of jpeg library introduced with the | |
| 50 | + ``--jpeg-quality`` feature introduced in 12.1.0. This was | |
| 51 | + causing build failures on some platforms. | |
| 52 | + | |
| 49 | 53 | - Other enhancements |
| 50 | 54 | |
| 51 | 55 | - More sanity checks have been added when files with damaged xref tables | ... | ... |