From f50858dd244f8b9fdafdbaa3d1ec1faadb801492 Mon Sep 17 00:00:00 2001 From: edgarriba Date: Sun, 1 Nov 2015 12:07:05 +0100 Subject: [PATCH] set GA_ReadOnly flag again since test error --- modules/imgcodecs/src/grfmt_gdal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgcodecs/src/grfmt_gdal.cpp b/modules/imgcodecs/src/grfmt_gdal.cpp index 3d3bbb834..1094b91b3 100644 --- a/modules/imgcodecs/src/grfmt_gdal.cpp +++ b/modules/imgcodecs/src/grfmt_gdal.cpp @@ -461,7 +461,7 @@ bool GdalDecoder::readData( Mat& img ){ bool GdalDecoder::readHeader(){ // load the dataset - m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_Update); + m_dataset = (GDALDataset*) GDALOpen( m_filename.c_str(), GA_ReadOnly); // if dataset is null, then there was a problem if( m_dataset == NULL ){