[trunk] Add a double check for user input

This commit is contained in:
Mathieu Malaterre 2014-03-13 12:26:06 +00:00
parent f0a2fdd508
commit 8447f0a323
1 changed files with 2 additions and 0 deletions

View File

@ -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(&parameters);
parameters.decod_format = TIF_DFMT;