mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Detect frame length of G.729A
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -544,6 +544,9 @@ static int get_samples(struct ast_frame *f)
|
||||
case AST_FORMAT_GSM:
|
||||
samples = 160 * (f->datalen / 33);
|
||||
break;
|
||||
case AST_FORMAT_G729A:
|
||||
samples = 160 * (f->datalen / 20);
|
||||
break;
|
||||
case AST_FORMAT_SLINEAR:
|
||||
samples = f->datalen / 2;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user