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:
37f4e03
)
Fix wave file lengths (bug #2486)
author
Mark Spencer
<markster@digium.com>
Sat, 9 Oct 2004 14:55:14 +0000
(14:55 +0000)
committer
Mark Spencer
<markster@digium.com>
Sat, 9 Oct 2004 14:55:14 +0000
(14:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3962
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
formats/format_wav_gsm.c
patch
|
blob
|
history
diff --git
a/formats/format_wav_gsm.c
b/formats/format_wav_gsm.c
index
90ef529
..
9030f03
100755
(executable)
--- a/
formats/format_wav_gsm.c
+++ b/
formats/format_wav_gsm.c
@@
-219,7
+219,7
@@
static int update_header(int fd)
end = lseek(fd, 0, SEEK_END);
/* in a gsm WAV, data starts 60 bytes in */
bytes = end - 60;
- datalen = htoll(bytes);
+ datalen = htoll((bytes + 1) & ~0x1);
filelen = htoll(52 + ((bytes + 1) & ~0x1));
if (cur < 0) {
ast_log(LOG_WARNING, "Unable to find our position\n");