]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix show_codec_n (bug #3427)
authorMark Spencer <markster@digium.com>
Wed, 26 Jan 2005 02:46:26 +0000 (02:46 +0000)
committerMark Spencer <markster@digium.com>
Wed, 26 Jan 2005 02:46:26 +0000 (02:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4893 65c4cc65-6c06-0410-ace0-fbb531ad65f3

frame.c

diff --git a/frame.c b/frame.c
index 26585f37c4dd7bdef1ed0be1656c94af93b76a24..22e02c019712b44a0ec8b4de54e149c2851aee22 100755 (executable)
--- a/frame.c
+++ b/frame.c
@@ -427,11 +427,13 @@ static struct ast_format_list AST_FORMAT_LIST[] = {
        { 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 @@ static int show_codec_n(int fd, int argc, char *argv[])
        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)