From: Joshua Colp Date: Thu, 24 Jan 2008 03:34:57 +0000 (+0000) Subject: Some more cosmetic changes. X-Git-Tag: 1.6.0-beta2~2^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d47c036dd58e658154670fdfb0df5edc9402ee4;p=thirdparty%2Fasterisk.git Some more cosmetic changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100095 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index f4672ca319..eae01c9d22 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; }