Fix "tell" for wav (bug #2212)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 21 years ago
parent f074b92823
commit 99f901f065

@ -520,7 +520,7 @@ static long wav_tell(struct ast_filestream *fs)
offset = lseek(fs->fd, 0, SEEK_CUR);
/* since this will most likely be used later in play or record, lets stick
* to that level of resolution, just even frames boundaries */
return (offset - 52)/65/320;
return (offset - 52)/65*320;
}
static char *wav_getcomment(struct ast_filestream *s)

Loading…
Cancel
Save