Format cleanups
authorMark Spencer <markster@digium.com>
Wed, 27 Aug 2003 23:35:17 +0000 (23:35 +0000)
committerMark Spencer <markster@digium.com>
Wed, 27 Aug 2003 23:35:17 +0000 (23:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

formats/format_g729.c
formats/format_pcm.c
formats/format_pcm_alaw.c

index 8176598..b35ff96 100755 (executable)
@@ -168,7 +168,7 @@ static char *g729_getcomment(struct ast_filestream *s)
 static int g729_seek(struct ast_filestream *fs, long sample_offset, int whence)
 {
        long bytes;
-       off_t min,cur,max,offset;
+       off_t min,cur,max,offset=0;
        min = 0;
        cur = lseek(fs->fd, 0, SEEK_CUR);
        max = lseek(fs->fd, 0, SEEK_END);
index ab3ba22..ebc9bf8 100755 (executable)
@@ -158,7 +158,7 @@ static int pcm_write(struct ast_filestream *fs, struct ast_frame *f)
 
 static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence)
 {
-       off_t offset,min,cur,max;
+       off_t offset=0,min,cur,max;
 
        min = 0;
        cur = lseek(fs->fd, 0, SEEK_CUR);
index abc450f..8e96b41 100755 (executable)
@@ -237,7 +237,7 @@ static int pcm_write(struct ast_filestream *fs, struct ast_frame *f)
 
 static int pcm_seek(struct ast_filestream *fs, long sample_offset, int whence)
 {
-       off_t offset,min,cur,max;
+       off_t offset=0,min,cur,max;
 
        min = 0;
        cur = lseek(fs->fd, 0, SEEK_CUR);