mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -235,8 +235,10 @@ static ImageDecoder findDecoder( const String& filename ) {
|
||||
FILE* f= fopen( filename.c_str(), "rb" );
|
||||
|
||||
/// 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();
|
||||
}
|
||||
|
||||
// read the file signature
|
||||
String signature(maxlen, ' ');
|
||||
|
||||
Reference in New Issue
Block a user