]> git.pld-linux.org Git - packages/dcmtk.git/blame - CharLS.patch
- comment on CharLS patch (included version, contrary to system CharLS 1.1, grows...
[packages/dcmtk.git] / CharLS.patch
CommitLineData
8e0c46f4
JB
1NOTE: system CharLS doesn't dynamically grow output buffer; but the calls below have
2buffers allocated for uncompressed_size+1024 bytes, so it's unlikely compressed data
3won't fit (if so, CharLS throws exception).
4
490ce120
AM
5--- dcmtk-3.6.3/dcmjpls/libsrc/djcodece.cc~ 2018-09-20 10:38:14.000000000 +0200
6+++ dcmtk-3.6.3/dcmjpls/libsrc/djcodece.cc 2018-09-20 10:59:27.453790390 +0200
7@@ -664,7 +664,7 @@ OFCondition DJLSEncoderBase::compressRaw
8
9 size_t bytesWritten = 0;
10
11- JLS_ERROR err = JpegLsEncode(&buffer, &size, &bytesWritten, framePointer, frameSize, &jls_params);
12+ JLS_ERROR err = JpegLsEncode(&buffer, size, &bytesWritten, framePointer, frameSize, &jls_params);
13 result = DJLSError::convert(err);
14
15 if (result.good())
16@@ -1055,7 +1055,7 @@ OFCondition DJLSEncoderBase::compressCoo
17
18 size_t bytesWritten = 0;
19
20- JLS_ERROR err = JpegLsEncode(&compressed_buffer, &compressed_buffer_size, &bytesWritten, framePointer, buffer_size, &jls_params);
21+ JLS_ERROR err = JpegLsEncode(&compressed_buffer, compressed_buffer_size, &bytesWritten, framePointer, buffer_size, &jls_params);
22 result = DJLSError::convert(err);
23
24 if (result.good())
This page took 0.073786 seconds and 4 git commands to generate.