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:
Mark Spencer
2003-04-16 22:26:03 +00:00
parent edf612581f
commit e16a3e6f74

View File

@@ -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;