]> granicus.if.org Git - openjpeg/commitdiff
argv[2] replaced by outfile when writing to output file (thanks to O.Smeesters and...
authorAntonin Descampe <antonin@gmail.com>
Thu, 26 May 2005 15:18:56 +0000 (15:18 +0000)
committerAntonin Descampe <antonin@gmail.com>
Thu, 26 May 2005 15:18:56 +0000 (15:18 +0000)
codec/j2k_to_image.c

index 9f2c30d028ed13ddead1e253613047729850503f..00fca99c586d4809161345209ac5a4b5857e1e0e 100644 (file)
@@ -639,7 +639,7 @@ int main(int argc, char **argv)
                                 8 bits non code (Gray scale)
                                 
        <<-- <<-- <<-- <<-- */
-      fdest = fopen(argv[2], "wb");
+      fdest = fopen(outfile, "wb");
       // w = int_ceildiv(img.x1 - img.x0, img.comps[0].dx);
       // wr = int_ceildiv(int_ceildivpow2(img.x1 - img.x0,img.factor), img.comps[0].dx);
       w = img.comps[0].w;