]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 81765985f750816b224cad768a7e293bae753396..b35ff966fecee1a2d491125d8480b59c674a88bc 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 ab3ba2205e70967a4492e700a784f6c69a3c472f..ebc9bf87a7cb8ddfadba5080d1eeefb335ae67c7 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 abc450f24a21cc8a839786d0b2050c983dc1df2c..8e96b41af166a606c6b91200e98781c6dc661bbb 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);