Fix "tell" for wav (bug #2212)
authorMark Spencer <markster@digium.com>
Wed, 4 Aug 2004 00:42:49 +0000 (00:42 +0000)
committerMark Spencer <markster@digium.com>
Wed, 4 Aug 2004 00:42:49 +0000 (00:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3576 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_wav_gsm.c

index 6ed2c64..f50aa47 100755 (executable)
@@ -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)