mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by mihai)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -220,6 +220,7 @@ static int speextolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
|
||||
}
|
||||
#endif
|
||||
pvt->samples += tmp->framesize;
|
||||
pvt->datalen += 2 * tmp->framesize; /* 2 bytes/sample */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user