Fix escaping QByteArray construction.
This commit is contained in:
parent
6cd13e1057
commit
c72beeeb7c
1 changed files with 1 additions and 3 deletions
|
|
@ -1362,9 +1362,7 @@ QByteArray MakeProgressiveJpeg(const QByteArray &bytes) {
|
||||||
jpeg_finish_compress(&dstinfo);
|
jpeg_finish_compress(&dstinfo);
|
||||||
jpeg_finish_decompress(&srcinfo);
|
jpeg_finish_decompress(&srcinfo);
|
||||||
|
|
||||||
return QByteArray::fromRawData(
|
return QByteArray(reinterpret_cast<char*>(outbuffer), outsize);
|
||||||
reinterpret_cast<char*>(outbuffer),
|
|
||||||
outsize);
|
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue