diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 00:09:49 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 00:31:23 +0200 |
commit | 21d6e3231f627470ee58b06df018f31de9eb3201 (patch) | |
tree | 2ab80c1061757eae8694ebd36bd6eef0868276d4 /libqpdf/Pl_DCT.cc | |
parent | f1c6bb97db659faf84e59dbe973b969e9fc1a066 (diff) | |
download | qpdf-21d6e3231f627470ee58b06df018f31de9eb3201.tar.zst |
Make use of the new Pipeline methods in some places
Diffstat (limited to 'libqpdf/Pl_DCT.cc')
-rw-r--r-- | libqpdf/Pl_DCT.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libqpdf/Pl_DCT.cc b/libqpdf/Pl_DCT.cc index a05dd48b..9c33b6e1 100644 --- a/libqpdf/Pl_DCT.cc +++ b/libqpdf/Pl_DCT.cc @@ -348,9 +348,7 @@ Pl_DCT::decompress(void* cinfo_p, Buffer* b) (void)jpeg_start_decompress(cinfo); while (cinfo->output_scanline < cinfo->output_height) { (void)jpeg_read_scanlines(cinfo, buffer, 1); - this->getNext()->write( - reinterpret_cast<unsigned char*>(buffer[0]), - width * sizeof(buffer[0][0])); + this->getNext()->write(buffer[0], width * sizeof(buffer[0][0])); } (void)jpeg_finish_decompress(cinfo); this->getNext()->finish(); |