From 4030a758ad7bce9593dbe212cc759dfa295fb97f Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Fri, 20 Apr 2007 08:36:47 +0000 Subject: [PATCH] Tentative de correction de segfault des tests. --- Code/IO/otbImageFileReader.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/IO/otbImageFileReader.txx b/Code/IO/otbImageFileReader.txx index a4f2936e43..2095a15cf3 100755 --- a/Code/IO/otbImageFileReader.txx +++ b/Code/IO/otbImageFileReader.txx @@ -174,7 +174,7 @@ ImageFileReader<TOutputImage> // PB : the GetComponentSize() method of the itkImageIOBase class is protected. // duplicated this method in this class (very BAD) - std::streamoff nbBytes = static_cast<std::streamoff>(this->GetComponentSize())*static_cast<std::streamoff>(region.GetNumberOfPixels()); + std::streamoff nbBytes = static_cast<std::streamoff>(this->GetComponentSize())*static_cast<std::streamoff>(region.GetNumberOfPixels())*static_cast<std::streamoff>(this->GetNumberOfComponentsPerPixel()); otbMsgDevMacro(<<"NbBytes "<<nbBytes); otbMsgDevMacro(<< "Buffer conversion required from: " -- GitLab