aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_ilbc.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-22 03:39:54 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-22 03:39:54 +0000
commitfdf6a007a8dca09d3eedbc71fa4daf919cd567f0 (patch)
tree1ad11592709de3475322d8ae47825e121f61417e /formats/format_ilbc.c
parent71dc0921baab2f95f7ebf5b0352e493d090caf04 (diff)
Small fixes from bkw
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2741 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_ilbc.c')
-rwxr-xr-xformats/format_ilbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/formats/format_ilbc.c b/formats/format_ilbc.c
index 41ec40adc..73bbfdddb 100755
--- a/formats/format_ilbc.c
+++ b/formats/format_ilbc.c
@@ -157,7 +157,7 @@ static int ilbc_write(struct ast_filestream *fs, struct ast_frame *f)
return -1;
}
if ((res = write(fs->fd, f->data, f->datalen)) != f->datalen) {
- ast_log(LOG_WARNING, "Bad write (%d/23): %s\n", res, strerror(errno));
+ ast_log(LOG_WARNING, "Bad write (%d/50): %s\n", res, strerror(errno));
return -1;
}
return 0;
@@ -176,7 +176,7 @@ static int ilbc_seek(struct ast_filestream *fs, long sample_offset, int whence)
cur = lseek(fs->fd, 0, SEEK_CUR);
max = lseek(fs->fd, 0, SEEK_END);
- bytes = 36 * (sample_offset / 240);
+ bytes = 50 * (sample_offset / 240);
if (whence == SEEK_SET)
offset = bytes;
else if (whence == SEEK_CUR || whence == SEEK_FORCECUR)