diff options
Diffstat (limited to 'main/frame.c')
-rw-r--r-- | main/frame.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/frame.c b/main/frame.c index bb32386ca..b664e2e84 100644 --- a/main/frame.c +++ b/main/frame.c @@ -1011,6 +1011,10 @@ int ast_codec_get_samples(struct ast_frame *f) } else { return 160; } + case AST_FORMAT_CELT: + /* TODO The assumes 20ms delivery right now, which is incorrect */ + samples = ast_format_rate(&f->subclass.format) / 50; + break; default: ast_log(LOG_WARNING, "Unable to calculate samples for format %s\n", ast_getformatname(&f->subclass.format)); } |