diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-25 22:31:51 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-25 22:31:51 +0000 |
commit | 701ba57042212fb040f92bd25f1ec3af40db2f43 (patch) | |
tree | 340230ce9bbc3b49326f8ff2fac3b659d1270a00 /formats/format_wav_gsm.c | |
parent | f9d08103cac28c6411974f5553cf163faf7ff14e (diff) |
Bug #1087. Fix wav49 format so it can be played. Make file functions
looking for extension use f->exts instead of f->name. Fix bug
where error message didn't print file extension. Fix comments in header file.
Everything is completely backwards compatible
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2247 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_wav_gsm.c')
-rwxr-xr-x | formats/format_wav_gsm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 5b502ff32..7a20791b3 100755 --- a/formats/format_wav_gsm.c +++ b/formats/format_wav_gsm.c @@ -68,7 +68,7 @@ static int glistcnt = 0; static char *name = "wav49"; static char *desc = "Microsoft WAV format (Proprietary GSM)"; -static char *exts = "WAV"; +static char *exts = "WAV|wav49"; #if __BYTE_ORDER == __LITTLE_ENDIAN #define htoll(b) (b) @@ -199,10 +199,12 @@ static int check_header(int fd) ast_log(LOG_WARNING, "Read failed (data)\n"); return -1; } +#if 0 /* Does this header actually exist? It doesn't appear to in the files that are created with ast_writefile using this format */ if (memcmp(&data, "data", 4)) { ast_log(LOG_WARNING, "Does not say data\n"); return -1; } +#endif /* Ignore the data length */ if (read(fd, &data, 4) != 4) { ast_log(LOG_WARNING, "Read failed (data)\n"); |