From ec1b970a32f95c094423b7d74d8191fde0ca37a4 Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Thu, 26 May 2005 15:18:56 +0000 Subject: [PATCH] argv[2] replaced by outfile when writing to output file (thanks to O.Smeesters and V.Mesaros) --- codec/j2k_to_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/j2k_to_image.c b/codec/j2k_to_image.c index 9f2c30d0..00fca99c 100644 --- a/codec/j2k_to_image.c +++ b/codec/j2k_to_image.c @@ -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; -- 2.40.0