From: Mark Spencer Date: Wed, 4 Aug 2004 00:42:49 +0000 (+0000) Subject: Fix "tell" for wav (bug #2212) X-Git-Tag: 1.0.0-rc2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99f901f065a58897cea2343b4799581f54cb8ec1;p=thirdparty%2Fasterisk.git Fix "tell" for wav (bug #2212) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3576 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/formats/format_wav_gsm.c b/formats/format_wav_gsm.c index 6ed2c64712..f50aa47210 100755 --- a/formats/format_wav_gsm.c +++ b/formats/format_wav_gsm.c @@ -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)