projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca99bf
)
Update grfmt_gdal.cpp
author
Suleyman TURKMEN
<sturkmen@hotmail.com>
Sun, 22 Oct 2017 16:01:34 +0000
(19:01 +0300)
committer
GitHub
<noreply@github.com>
Sun, 22 Oct 2017 16:01:34 +0000
(19:01 +0300)
modules/imgcodecs/src/grfmt_gdal.cpp
patch
|
blob
|
history
diff --git
a/modules/imgcodecs/src/grfmt_gdal.cpp
b/modules/imgcodecs/src/grfmt_gdal.cpp
index
4bb8dd0
..
7953256
100644
(file)
--- a/
modules/imgcodecs/src/grfmt_gdal.cpp
+++ b/
modules/imgcodecs/src/grfmt_gdal.cpp
@@
-562,7
+562,6
@@
ImageDecoder GdalDecoder::newDecoder()const{
*/
bool GdalDecoder::checkSignature( const String& signature )const{
-
// look for NITF
std::string str(signature);
if( str.substr(0,4).find("NITF") != std::string::npos ){
@@
-570,7
+569,7
@@
bool GdalDecoder::checkSignature( const String& signature )const{
}
// look for DTED
- if( str.substr(140,4) == "DTED" ){
+ if( str.s
ize() > 144 && str.s
ubstr(140,4) == "DTED" ){
return true;
}