Mercurial > hg > orthanc
diff Core/DicomFormat/DicomIntegerPixelAccessor.cpp @ 319:760d0f32cb34
PMSCT_RLE1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jan 2013 13:19:51 +0100 |
parents | fe180eae201d |
children | 80011cd589e6 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Mon Dec 31 09:14:35 2012 +0100 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Thu Jan 03 13:19:51 2013 +0100 @@ -111,9 +111,9 @@ throw OrthancException(ErrorCode_NotImplemented); } - if (width_ * height_ * bitsAllocated / 8 * numberOfFrames_ != size) + if (width_ * height_ * bitsAllocated / 8 * numberOfFrames_ > size) { - throw OrthancException(ErrorCode_NotImplemented); + throw OrthancException(ErrorCode_BadFileFormat); } /*printf("%d %d %d %d %d %d %d %d\n", width_, height_, samplesPerPixel_, bitsAllocated,