Commit 6fff8e20 authored by Josh Coalson's avatar Josh Coalson
Browse files

make the default suffix .ana for analysis files

parent f0003358
......@@ -583,7 +583,7 @@ int encode_file(const char *infilename, const char *forced_outfilename)
int decode_file(const char *infilename, const char *forced_outfilename)
{
static const char *suffixes[] = { ".wav", ".raw" };
static const char *suffixes[] = { ".wav", ".raw", ".ana" };
char outfilename[4096]; /* @@@ bad MAGIC NUMBER */
char *p;
int retval;
......@@ -601,7 +601,7 @@ int decode_file(const char *infilename, const char *forced_outfilename)
if(0 == strcmp(infilename, "-") || force_to_stdout)
strcpy(outfilename, "-");
else {
const char *suffix = suffixes[format_is_wave? 0:1];
const char *suffix = suffixes[analyze? 2 : format_is_wave? 0 : 1];
strcpy(outfilename, infilename);
if(0 == (p = strrchr(outfilename, '.')))
strcat(outfilename, suffix);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment