mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
fix g.723.1 pass-thru. Bug #477
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
rtp.c
2
rtp.c
@@ -137,7 +137,7 @@ static int g723_samples(unsigned char *buf, int maxlen)
|
|||||||
int res;
|
int res;
|
||||||
while(pos < maxlen) {
|
while(pos < maxlen) {
|
||||||
res = g723_len(buf[pos]);
|
res = g723_len(buf[pos]);
|
||||||
if (res < 0)
|
if (res <= 0)
|
||||||
break;
|
break;
|
||||||
samples += 240;
|
samples += 240;
|
||||||
pos += res;
|
pos += res;
|
||||||
|
|||||||
Reference in New Issue
Block a user