Skip to content

Commit 8d32ea2

Browse files
committed
Handle famous IllegalPrivatePixelSequence case
1 parent c7f2bd8 commit 8d32ea2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Source/DataStructureAndEncodingDefinition/gdcmExplicitDataElement.txx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ std::istream &ExplicitDataElement::ReadValue(std::istream &is, bool readvalues)
203203
gdcm_assert( VRField & VR::OB_OW || VRField == VR::UN );
204204
ValueField = new SequenceOfFragments;
205205
}
206+
else if( TagField == Tag(0x7fe1,0x1060) && VRField == VR::OB )
207+
{
208+
gdcmWarningMacro( "IllegalPrivatePixelSequence (7fe1,1060)" );
209+
ValueField = new SequenceOfFragments;
210+
}
206211
else
207212
{
208213
// Support cp246 conforming file:

Source/MediaStorageAndFileFormat/gdcmPrinter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ VR Printer::PrintDataElement(std::ostringstream &os, const Dicts &dicts, const D
642642
}
643643
else if ( sqf )
644644
{
645-
gdcm_assert( t == Tag(0x7fe0,0x0010) );
645+
gdcm_assert( t == Tag(0x7fe0,0x0010) || t == Tag(0x7fe1,0x1060) );
646646
//os << *sqf;
647647
}
648648
else if ( sqi )

0 commit comments

Comments
 (0)