mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Fix compile error in codec ilbc translator.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@306257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -198,8 +198,8 @@ static int load_module(void)
|
|||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
ast_format_set(&ilibctolin.src_format, AST_FORMAT_ILBC, 0);
|
ast_format_set(&ilbctolin.src_format, AST_FORMAT_ILBC, 0);
|
||||||
ast_format_set(&ilibctolin.dst_format, AST_FORMAT_SLINEAR, 0);
|
ast_format_set(&ilbctolin.dst_format, AST_FORMAT_SLINEAR, 0);
|
||||||
|
|
||||||
ast_format_set(&lintoilbc.src_format, AST_FORMAT_SLINEAR, 0);
|
ast_format_set(&lintoilbc.src_format, AST_FORMAT_SLINEAR, 0);
|
||||||
ast_format_set(&lintoilbc.dst_format, AST_FORMAT_ILBC, 0);
|
ast_format_set(&lintoilbc.dst_format, AST_FORMAT_ILBC, 0);
|
||||||
|
@@ -19,7 +19,6 @@ static struct ast_frame *ilbc_sample(void)
|
|||||||
{
|
{
|
||||||
static struct ast_frame f = {
|
static struct ast_frame f = {
|
||||||
.frametype = AST_FRAME_VOICE,
|
.frametype = AST_FRAME_VOICE,
|
||||||
.subclass.codec = AST_FORMAT_ILBC,
|
|
||||||
.datalen = sizeof(ex_ilbc),
|
.datalen = sizeof(ex_ilbc),
|
||||||
/* All frames are 30 ms long */
|
/* All frames are 30 ms long */
|
||||||
.samples = ILBC_SAMPLES,
|
.samples = ILBC_SAMPLES,
|
||||||
@@ -29,5 +28,6 @@ static struct ast_frame *ilbc_sample(void)
|
|||||||
.data.ptr = ex_ilbc,
|
.data.ptr = ex_ilbc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ast_format_set(&f.subclass.format, AST_FORMAT_ILBC, 0);
|
||||||
return &f;
|
return &f;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user