mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
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:
@@ -610,10 +610,13 @@ int ast_best_codec(int fmts)
|
|||||||
fmts &= AST_FORMAT_AUDIO_MASK;
|
fmts &= AST_FORMAT_AUDIO_MASK;
|
||||||
|
|
||||||
/* Find the first preferred codec in the format given */
|
/* 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])
|
if (fmts & prefs[x])
|
||||||
return prefs[x];
|
return prefs[x];
|
||||||
|
}
|
||||||
|
|
||||||
ast_log(LOG_WARNING, "Don't know any of 0x%x formats\n", fmts);
|
ast_log(LOG_WARNING, "Don't know any of 0x%x formats\n", fmts);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user