|
|
@ -226,8 +226,10 @@ static ImageDecoder findDecoder( const String& filename ) { |
|
|
|
FILE* f= fopen( filename.c_str(), "rb" ); |
|
|
|
FILE* f= fopen( filename.c_str(), "rb" ); |
|
|
|
|
|
|
|
|
|
|
|
/// in the event of a failure, return an empty image decoder
|
|
|
|
/// in the event of a failure, return an empty image decoder
|
|
|
|
if( !f ) |
|
|
|
if( !f ) { |
|
|
|
|
|
|
|
CV_LOG_WARNING(NULL, "imread_('" << filename << "'): can't open/read file: check file path/integrity"); |
|
|
|
return ImageDecoder(); |
|
|
|
return ImageDecoder(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// read the file signature
|
|
|
|
// read the file signature
|
|
|
|
String signature(maxlen, ' '); |
|
|
|
String signature(maxlen, ' '); |
|
|
|