changeset 2430:a6fab385b89e

fix for dcmtk 3.6.0
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 29 Oct 2017 17:38:55 +0100
parents fe90b3ec9d4a
children 14537babc1e6
files Core/DicomParsing/Internals/DicomImageDecoder.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/DicomParsing/Internals/DicomImageDecoder.cpp	Fri Oct 27 13:04:41 2017 +0200
+++ b/Core/DicomParsing/Internals/DicomImageDecoder.cpp	Sun Oct 29 17:38:55 2017 +0100
@@ -684,8 +684,11 @@
     if (syntax == EXS_JPEGLSLossless ||
         syntax == EXS_JPEGLSLossy)
     {
+      // The (2, OFTrue) are the default parameters as found in DCMTK 3.6.2
+      // http://support.dcmtk.org/docs/classDJLSRepresentationParameter.html
+      DJLSRepresentationParameter representationParameter(2, OFTrue);
+
       DJLSCodecParameter parameters;
-      DJLSRepresentationParameter representationParameter;
       std::auto_ptr<DJLSDecoderBase> decoder;
 
       switch (syntax)