From 84f77a71e58326269dcb730b6ed34970bf154608 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 22 Jun 2010 19:06:29 +0000 Subject: [PATCH] Sync with v2 branch --- codec/j2k_dump.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/codec/j2k_dump.c b/codec/j2k_dump.c index 3d485e9d..5042f47a 100644 --- a/codec/j2k_dump.c +++ b/codec/j2k_dump.c @@ -349,25 +349,26 @@ int main(int argc, char *argv[]) dirptr->filename = (char**) malloc(num_images*sizeof(char*)); if(!dirptr->filename_buf){ - return 0; + return 1; } for(i=0;ifilename[i] = dirptr->filename_buf + i*OPJ_PATH_LEN; } } if(load_images(dirptr,img_fol.imgdirpath)==1){ - return 0; + return 1; } if (num_images==0){ fprintf(stdout,"Folder is empty\n"); - return 0; + return 1; } }else{ num_images=1; } /*Encoding image one by one*/ - for(imageno = 0; imageno < num_images ; imageno++) { + for(imageno = 0; imageno < num_images ; imageno++) + { image = NULL; fprintf(stderr,"\n");