[Asterisk-cvs] asterisk frame.c,1.44,1.45

markster at lists.digium.com markster at lists.digium.com
Tue Jan 25 20:44:14 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv486

Modified Files:
	frame.c 
Log Message:
Fix show_codec_n (bug #3427)


Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- frame.c	21 Jan 2005 07:06:24 -0000	1.44
+++ frame.c	26 Jan 2005 02:46:26 -0000	1.45
@@ -427,11 +427,13 @@
 	{ 0, AST_FORMAT_MAX_VIDEO, "maxvideo", "Maximum video format" },
 };
 
-struct ast_format_list *ast_get_format_list_index(int index) {
+struct ast_format_list *ast_get_format_list_index(int index) 
+{
 	return &AST_FORMAT_LIST[index];
 }
 
-struct ast_format_list *ast_get_format_list(size_t *size) {
+struct ast_format_list *ast_get_format_list(size_t *size) 
+{
 	*size = (sizeof(AST_FORMAT_LIST) / sizeof(struct ast_format_list));
 	return AST_FORMAT_LIST;
 }
@@ -595,7 +597,7 @@
 	for (i=0;i<32;i++)
 		if (codec & (1 << i)) {
 			found = 1;
-			ast_cli(fd, "%11u (1 << %2d)  %s\n",1 << i,i,ast_codec2str(i));
+			ast_cli(fd, "%11u (1 << %2d)  %s\n",1 << i,i,ast_codec2str(1<<i));
 		}
 
 	if (! found)




More information about the svn-commits mailing list