From: Josh Coalson Date: Wed, 6 Jun 2001 19:01:13 +0000 (+0000) Subject: make the default suffix .ana for analysis files X-Git-Tag: 1.2.0~2281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6fff8e20ecfaccd65c546ebc2eb5182eb59e741f;p=platform%2Fupstream%2Fflac.git make the default suffix .ana for analysis files --- diff --git a/src/flac/main.c b/src/flac/main.c index 4075972..27e3e71 100644 --- a/src/flac/main.c +++ b/src/flac/main.c @@ -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);