summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-01-24 03:34:57 +0000
committerJoshua Colp <jcolp@digium.com>2008-01-24 03:34:57 +0000
commit1d47c036dd58e658154670fdfb0df5edc9402ee4 (patch)
tree3b627828169e6d352d820484b1499b2acde3c589 /main
parent15515ec671d414407c82facaaae3cf3b0974976e (diff)
Some more cosmetic changes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/channel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index f4672ca31..eae01c9d2 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -610,10 +610,13 @@ int ast_best_codec(int fmts)
fmts &= AST_FORMAT_AUDIO_MASK;
/* Find the first preferred codec in the format given */
- for (x=0; x < (sizeof(prefs) / sizeof(prefs[0]) ); x++)
+ for (x = 0; x < (sizeof(prefs) / sizeof(prefs[0]) ); x++) {
if (fmts & prefs[x])
return prefs[x];
+ }
+
ast_log(LOG_WARNING, "Don't know any of 0x%x formats\n", fmts);
+
return 0;
}