X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.cxx;h=e29c08bfc24dd287b2ecbacc27528ac6955d67ea;hb=65f457a97152fce4878d7aa20ec02f4ccda20705;hp=c91e0f0ac3463336f7d99c62bfdde969f314ebc4;hpb=d69d86e8f300cedb58d8c3e2cde6aa88984ecc8d;p=gdcm.git diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index c91e0f0a..e29c08bf 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2004/06/23 13:54:56 $ - Version: $Revision: 1.28 $ + Date: $Date: 2004/06/23 15:01:57 $ + Version: $Revision: 1.29 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1227,9 +1227,16 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set, long offset, long l_max, bool NewDocEntry->GetElement() == 0x0010 ) { if (NewDocEntry->GetLength()==0xffffffff) + { // Broken US.3405.1.dcm Parse7FE0(); // to skip the pixels // (multipart JPEG/RLE are trouble makers) + } + else + { + SkipToNextDocEntry(NewDocEntry); + l = NewDocEntry->GetFullLength(); + } } else {