Some more cosmetic changes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp 2008-01-24 03:34:57 +00:00
parent 15515ec671
commit 1d47c036dd
1 changed files with 4 additions and 1 deletions

View 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;
}