summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2005-05-26 15:18:56 +0000
committerAntonin Descampe <antonin@gmail.com>2005-05-26 15:18:56 +0000
commitec1b970a32f95c094423b7d74d8191fde0ca37a4 (patch)
treee129859275592fd0cd8929ba4ab9fd61398dda5a /codec
parentee6d0cfba9b19820157414830039e49714aea5cf (diff)
argv[2] replaced by outfile when writing to output file (thanks to O.Smeesters and V.Mesaros)
Diffstat (limited to 'codec')
-rw-r--r--codec/j2k_to_image.c2
1 files changed, 1 insertions, 1 deletions
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;