mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Clean the error for IAX when using SPEEX codec
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -659,6 +659,9 @@ static int get_samples(struct ast_frame *f)
|
||||
case AST_FORMAT_ADPCM:
|
||||
samples = f->datalen *2;
|
||||
break;
|
||||
case AST_FORMAT_SPEEX:
|
||||
samples = (f->datalen/39)*160;
|
||||
break;
|
||||
default:
|
||||
ast_log(LOG_WARNING, "Don't know how to calculate samples on %d packets\n", f->subclass);
|
||||
}
|
||||
|
Reference in New Issue
Block a user