From affab9b2ca30d8f80dae70c227f0b801eb7a4421 Mon Sep 17 00:00:00 2001 From: Chris Rorden Date: Sat, 19 Aug 2017 09:09:50 -0400 Subject: [PATCH] Update dcm_qa submodule. --- console/nii_dicom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/nii_dicom.cpp b/console/nii_dicom.cpp index 9ca38170..92fdd720 100644 --- a/console/nii_dicom.cpp +++ b/console/nii_dicom.cpp @@ -238,12 +238,12 @@ unsigned char * nii_loadImgCoreOpenJPEG(char* imgname, struct nifti_1_header hdr if(! opj_read_header( stream, codec, &jpx)){ printError( "OpenJPEG failed to read the header %s (offset %d)\n", imgname, dcm.imageStart); //comment these next lines to abort: include these to create zero-padded slice - {#ifdef MY_ZEROFILLBROKENJPGS} + #ifdef MY_ZEROFILLBROKENJPGS //fix broken slices https://github.com/scitran-apps/dcm2niix/issues/4 printError( "Zero-filled slice created\n"); int imgbytes = (hdr.bitpix/8)*hdr.dim[1]*hdr.dim[2]; ret = (unsigned char*) calloc(imgbytes,1); - {#endif} + #endif goto cleanup2; } // Get the decoded image