projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27294b8
)
Fix ADPCM file writing
author
Mark Spencer
<markster@digium.com>
Sun, 21 Sep 2003 02:59:26 +0000
(
02:59
+0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 21 Sep 2003 02:59:26 +0000
(
02:59
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1535
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
formats/format_vox.c
patch
|
blob
|
history
diff --git
a/formats/format_vox.c
b/formats/format_vox.c
index
851f1fb
..
45ba749
100755
(executable)
--- a/
formats/format_vox.c
+++ b/
formats/format_vox.c
@@
-274,7
+274,7
@@
static int vox_write(struct ast_filestream *fs, struct ast_frame *f)
ast_log(LOG_WARNING, "Invalid frame of data (< 3 bytes long) from %s\n", f->src);
return -1;
}
- if ((res = write(fs->fd, f->data + 3, f->datalen)) != f->datalen) {
+ if ((res = write(fs->fd, f->data + 3, f->datalen - 3)) != f->datalen - 3) {
ast_log(LOG_WARNING, "Bad write (%d/%d): %s\n", res, f->datalen, strerror(errno));
return -1;
}