From 1d47c036dd58e658154670fdfb0df5edc9402ee4 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 24 Jan 2008 03:34:57 +0000 Subject: [PATCH] Some more cosmetic changes. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100095 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/channel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.47.2