aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-27 23:35:17 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-27 23:35:17 +0000
commit504acd4800ee38c7938f8468d276b68b095aa3a2 (patch)
treef4aa6f23517f3f8cf81e7cd17056a7c4207e491c
parent9ea1a77af95f8326a764106fd757e43a3ccb20d5 (diff)
Format cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1444 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xformats/format_g729.c2
-rwxr-xr-xformats/format_pcm.c2
-rwxr-xr-xformats/format_pcm_alaw.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/formats/format_g729.c b/formats/format_g729.c
index 81765985f..b35ff966f 100755
--- a/formats/format_g729.c
+++ b/formats/format_g729.c
@@ -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);
diff --git a/formats/format_pcm.c b/formats/format_pcm.c
index ab3ba2205..ebc9bf87a 100755
--- a/formats/format_pcm.c
+++ b/formats/format_pcm.c
@@ -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);
diff --git a/formats/format_pcm_alaw.c b/formats/format_pcm_alaw.c
index abc450f24..8e96b41af 100755
--- a/formats/format_pcm_alaw.c
+++ b/formats/format_pcm_alaw.c
@@ -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);