diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-26 02:46:26 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-26 02:46:26 +0000 |
commit | eb7466d0c7ec05295b4a84b15364fdabd66443bd (patch) | |
tree | 738e19b70caa4c09a2236f965748ff145e960fb3 /frame.c | |
parent | cfd29ecb79f9fc0123c7a90040a19835c234dd1c (diff) |
Fix show_codec_n (bug #3427)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4893 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'frame.c')
-rwxr-xr-x | frame.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |