[asterisk-commits] dvossel: trunk r306257 - in /trunk/codecs: codec_ilbc.c ex_ilbc.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 4 10:42:19 CST 2011
Author: dvossel
Date: Fri Feb 4 10:42:15 2011
New Revision: 306257
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=306257
Log:
Fix compile error in codec ilbc translator.
Modified:
trunk/codecs/codec_ilbc.c
trunk/codecs/ex_ilbc.h
Modified: trunk/codecs/codec_ilbc.c
URL: http://svnview.digium.com/svn/asterisk/trunk/codecs/codec_ilbc.c?view=diff&rev=306257&r1=306256&r2=306257
==============================================================================
--- trunk/codecs/codec_ilbc.c (original)
+++ trunk/codecs/codec_ilbc.c Fri Feb 4 10:42:15 2011
@@ -198,8 +198,8 @@
{
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);
Modified: trunk/codecs/ex_ilbc.h
URL: http://svnview.digium.com/svn/asterisk/trunk/codecs/ex_ilbc.h?view=diff&rev=306257&r1=306256&r2=306257
==============================================================================
--- trunk/codecs/ex_ilbc.h (original)
+++ trunk/codecs/ex_ilbc.h Fri Feb 4 10:42:15 2011
@@ -19,7 +19,6 @@
{
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 @@
.data.ptr = ex_ilbc,
};
+ ast_format_set(&f.subclass.format, AST_FORMAT_ILBC, 0);
return &f;
}
More information about the asterisk-commits
mailing list