aboutsummaryrefslogtreecommitdiffstats
path: root/frame.c
diff options
context:
space:
mode:
authoranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-08 00:55:31 +0000
committeranthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-08 00:55:31 +0000
commit2608709483303f5eb8f3ee514cdb7c56d88a7f7e (patch)
treee3ce82988863aac3e194f7ef22161abfeb73d086 /frame.c
parent4d714a548871e5858faa4d7b9bdb0ffebccde161 (diff)
fix case sensitivity issue in codecs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4400 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'frame.c')
-rwxr-xr-xframe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/frame.c b/frame.c
index 7de4514a2..524434220 100755
--- a/frame.c
+++ b/frame.c
@@ -499,11 +499,11 @@ int ast_getformatbyname(char *name)
{
int x = 0, all = 0, format = 0;
- all = strcmp(name, "all") ? 0 : 1;
+ all = strcasecmp(name, "all") ? 0 : 1;
for (x = 0 ; x < sizeof(AST_FORMAT_LIST) / sizeof(struct ast_format_list) ; x++) {
if(AST_FORMAT_LIST[x].visible && (all ||
- !strcmp(AST_FORMAT_LIST[x].name,name) ||
- !strcmp(AST_FORMAT_LIST[x].name,ast_expand_codec_alias(name)))) {
+ !strcasecmp(AST_FORMAT_LIST[x].name,name) ||
+ !strcasecmp(AST_FORMAT_LIST[x].name,ast_expand_codec_alias(name)))) {
format |= AST_FORMAT_LIST[x].bits;
if(!all)
break;