]>
Commit | Line | Data |
---|---|---|
8e0c46f4 JB |
1 | NOTE: system CharLS doesn't dynamically grow output buffer; but the calls below have |
2 | buffers allocated for uncompressed_size+1024 bytes, so it's unlikely compressed data | |
3 | won'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()) |