ENH: Upon failure, properly return error code (!=0)

This commit is contained in:
Mathieu Malaterre 2007-09-07 13:06:36 +00:00
parent 53471a76f1
commit 2479921c71
3 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,9 @@ What's New for OpenJPEG
! : changed
+ : added
September 7, 2007
* [Mathieu Malaterre] Upon failure, properly return error code (!=0).
September 6, 2007
+ [Mathieu Malaterre] CMake: start compiling mj2, jpwl and jp3d
+ [Mathieu Malaterre] CMake: output all executable/libs into one single directory

View File

@ -1750,7 +1750,7 @@ int main(int argc, char **argv) {
/* parse input and get user encoding parameters */
if(parse_cmdline_encoder(argc, argv, &parameters,&img_fol, &raw_cp) == 1) {
return 0;
return 1;
}
if (parameters.cp_cinema){

View File

@ -522,7 +522,7 @@ int main(int argc, char **argv) {
/* parse input and get user encoding parameters */
if(parse_cmdline_decoder(argc, argv, &parameters,&img_fol) == 1) {
return 0;
return 1;
}
if(img_fol.set_imgdir==1){