Changeset 32556 for trunk/psvideophot/src/dumpvideo.c
- Timestamp:
- Oct 14, 2011, 4:41:16 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/psvideophot/src/dumpvideo.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psvideophot/src/dumpvideo.c
r32553 r32556 2 2 #include <assert.h> 3 3 #include <pslib.h> 4 #include <psmodules.h> 4 5 5 6 int main (int argc, char **argv) { … … 9 10 exit (2); 10 11 } 12 13 pmConfig *config = pmConfigRead(&argc, argv, NULL); 14 if (config == NULL) { 15 psErrorStackPrint(stderr, "Can't find site configuration!\n"); 16 exit(EXIT_FAILURE); 17 } 18 19 11 20 12 21 char *input = argv[1]; // Input file name … … 19 28 } 20 29 21 psFits *infile = psFitsOpen (input, "r"); // Input file 30 psString inputResolved = pmConfigConvertFilename(input, config, false, false); 31 psFits *infile = psFitsOpen (inputResolved, "r"); // Input file 22 32 if (!infile) { 23 33 fprintf (stderr, "Unable to open input file %s", input); … … 25 35 } 26 36 27 psFits *outfile = psFitsOpen (output, "w"); // Output file 37 psString outputResolved = pmConfigConvertFilename(output, config, true, true); 38 psFits *outfile = psFitsOpen (outputResolved, "w"); // Output file 28 39 if (!outfile) { 29 40 fprintf (stderr, "Unable to open output file %s", output);
Note:
See TracChangeset
for help on using the changeset viewer.
