From: cristy Date: Thu, 8 Sep 2011 12:32:45 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7047 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=187c796bc9ac534c1958260290be8fbe31461189;p=imagemagick --- diff --git a/coders/dcm.c b/coders/dcm.c index 6b4487776..8183489c0 100644 --- a/coders/dcm.c +++ b/coders/dcm.c @@ -3061,9 +3061,9 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) count=ReadBlob(image,(size_t) quantum*length,data); if (count != (ssize_t) (quantum*length)) { - (void) FormatLocaleFile(stdout,"count=%d quantum=%d length=%d " - "group=%d\n",(int) count,(int) quantum,(int) length,(int) - group); + (void) FormatLocaleFile(stdout,"count=%d quantum=%d " + "length=%d group=%d\n",(int) count,(int) quantum,(int) + length,(int) group); ThrowReaderException(CorruptImageError, "InsufficientImageDataInFile"); } @@ -3646,7 +3646,7 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) one=1; if (colors == 0) colors=one << depth; - if (AcquireImageColormap(image,colors,exception) == MagickFalse) + if (AcquireImageColormap(image,one << depth,exception) == MagickFalse) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); if (redmap != (int *) NULL) for (i=0; i < (ssize_t) colors; i++) @@ -3820,8 +3820,6 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) ReadDCMLSBShort(stream_info,image)); if (signed_data == 1) pixel_value=((signed short) pixel_value); - if (significant_bits == 12) - pixel_value>>=4; } else {