summaryrefslogtreecommitdiff
path: root/formats
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-02-26 06:46:01 +0000
committerJames Golovich <james@gnuinter.net>2004-02-26 06:46:01 +0000
commit133748f0042d9b8b1300c6b17cbdac4f571b600f (patch)
tree2de7154ff03ea12aae2ea49b2152ee5e6bb94733 /formats
parent35f3f86df476682d0a0b84a1f734e854d3606ad9 (diff)
Really fix format_wav_gsm.c. Thanks PCadach! (bug #1087)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'formats')
-rwxr-xr-xformats/format_wav_gsm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c
index 7a20791b3..1d33caffb 100755
--- a/formats/format_wav_gsm.c
+++ b/formats/format_wav_gsm.c
@@ -199,12 +199,10 @@ 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");
@@ -483,7 +481,7 @@ static int wav_write(struct ast_filestream *fs, struct ast_frame *f)
static int wav_seek(struct ast_filestream *fs, long sample_offset, int whence)
{
off_t offset=0,distance,cur,min,max;
- min = 52;
+ min = 60;
cur = lseek(fs->fd, 0, SEEK_CUR);
max = lseek(fs->fd, 0, SEEK_END);
/* I'm getting sloppy here, I'm only going to go to even splits of the 2