mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Fix size bug in wav49 format (bug #254) thanks rtucker!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -209,7 +209,8 @@ static int update_header(int fd)
|
|||||||
|
|
||||||
cur = lseek(fd, 0, SEEK_CUR);
|
cur = lseek(fd, 0, SEEK_CUR);
|
||||||
end = lseek(fd, 0, SEEK_END);
|
end = lseek(fd, 0, SEEK_END);
|
||||||
bytes = end - 52;
|
/* in a gsm WAV, data starts 60 bytes in */
|
||||||
|
bytes = end - 60;
|
||||||
datalen = htoll(bytes);
|
datalen = htoll(bytes);
|
||||||
filelen = htoll(52 + ((bytes + 1) & ~0x1));
|
filelen = htoll(52 + ((bytes + 1) & ~0x1));
|
||||||
if (cur < 0) {
|
if (cur < 0) {
|
||||||
|
Reference in New Issue
Block a user