aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-04 16:42:15 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2011-02-04 16:42:15 +0000
commit71d8066a81fabc97d0f084b76a9e65059d0ac3d1 (patch)
treebf2eb79396a7ad0517153e6a27956df13e730bef
parentcf049e9f83e37ae09cc9285ec39ed93933faa7ae (diff)
Fix compile error in codec ilbc translator.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@306257 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--codecs/codec_ilbc.c4
-rw-r--r--codecs/ex_ilbc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/codecs/codec_ilbc.c b/codecs/codec_ilbc.c
index bbd0019de..cc5e4990c 100644
--- a/codecs/codec_ilbc.c
+++ b/codecs/codec_ilbc.c
@@ -198,8 +198,8 @@ static int load_module(void)
{
int res;
- ast_format_set(&ilibctolin.src_format, AST_FORMAT_ILBC, 0);
- ast_format_set(&ilibctolin.dst_format, AST_FORMAT_SLINEAR, 0);
+ ast_format_set(&ilbctolin.src_format, AST_FORMAT_ILBC, 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.dst_format, AST_FORMAT_ILBC, 0);
diff --git a/codecs/ex_ilbc.h b/codecs/ex_ilbc.h
index 376aa37ec..93cf5eacf 100644
--- a/codecs/ex_ilbc.h
+++ b/codecs/ex_ilbc.h
@@ -19,7 +19,6 @@ static struct ast_frame *ilbc_sample(void)
{
static struct ast_frame f = {
.frametype = AST_FRAME_VOICE,
- .subclass.codec = AST_FORMAT_ILBC,
.datalen = sizeof(ex_ilbc),
/* All frames are 30 ms long */
.samples = ILBC_SAMPLES,
@@ -29,5 +28,6 @@ static struct ast_frame *ilbc_sample(void)
.data.ptr = ex_ilbc,
};
+ ast_format_set(&f.subclass.format, AST_FORMAT_ILBC, 0);
return &f;
}