diff OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp @ 4334:b2366bc023f8

Fix access to videos as a single raw frame
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2020 16:33:40 +0100
parents 91554aecff9a
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Fri Nov 27 06:57:23 2020 +0100
+++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Mon Nov 30 16:33:40 2020 +0100
@@ -2618,9 +2618,16 @@
     {
       throw OrthancException(ErrorCode_InternalError);
     }
-        
-    DcmDataset& dataset = *dicom.getDataset();
-
+    else
+    {
+      return LookupOrthancTransferSyntax(target, *dicom.getDataset());
+    }
+  }
+
+
+  bool FromDcmtkBridge::LookupOrthancTransferSyntax(DicomTransferSyntax& target,
+                                                    DcmDataset& dataset)
+  {
     E_TransferSyntax xfer = dataset.getCurrentXfer();
     if (xfer == EXS_Unknown)
     {