[trunk] Add a double check for user input
This commit is contained in:
parent
f0a2fdd508
commit
8447f0a323
|
@ -262,6 +262,8 @@ static opj_image_t* readImageFromFileTIF(const char* filename, int nbFilenamePGX
|
|||
TIFFSetErrorHandler(NULL);
|
||||
#endif
|
||||
|
||||
if ( strlen(separator) != 0 ) return NULL;
|
||||
|
||||
/* set encoding parameters to default values */
|
||||
opj_set_default_encoder_parameters(¶meters);
|
||||
parameters.decod_format = TIF_DFMT;
|
||||
|
|
Loading…
Reference in New Issue