Skip to content

Commit

Permalink
Only check SQ for implicit Philips data for speed and to avoid uninte…
Browse files Browse the repository at this point in the history
…nded consequences #144
  • Loading branch information
neurolabusc committed Nov 22, 2017
1 parent 2193d8b commit 7f5649c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/nii_dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2976,7 +2976,7 @@ uint32_t kUnnest2 = 0xFFFE +(0xE0DD << 16 ); //#define kUnnest2 0xFFFE +(0xE0DD
else
lLength = buffer[lPos+3] | (buffer[lPos+2] << 8) | (buffer[lPos+1] << 16) | (buffer[lPos] << 24);
lPos += 4; //we have loaded the 32-bit length
if (isSQ(groupElement)) {
if ((d.manufacturer == kMANUFACTURER_PHILIPS) && (isSQ(groupElement))) { //https://github.com/rordenlab/dcm2niix/issues/144
vr[0] = 'S';
vr[1] = 'Q';
lLength = 8; //Sequence Tag
Expand Down

0 comments on commit 7f5649c

Please sign in to comment.