Some more cosmetic changes.
authorJoshua Colp <jcolp@digium.com>
Thu, 24 Jan 2008 03:34:57 +0000 (03:34 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 24 Jan 2008 03:34:57 +0000 (03:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100095 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index f4672ca..eae01c9 100644 (file)
@@ -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;
 }