diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-25 19:53:45 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-25 19:53:45 +0000 |
commit | 8394cccc39465092a2edd0ff18a9ef02ea4b1dfd (patch) | |
tree | 2c10c897013c87c49bd51d50e3bce67b73d3a837 /translate.c | |
parent | a1b826481bb89c85cd7534a3a318d1f6970de620 (diff) |
Bug fix for translation updates. Thanks Josh!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11119 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'translate.c')
-rw-r--r-- | translate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/translate.c b/translate.c index 45bbf2c29..1ebbc1ff6 100644 --- a/translate.c +++ b/translate.c @@ -470,8 +470,10 @@ int ast_translator_best_choice(int *dst, int *srcs) /* We will need to translate */ AST_LIST_LOCK(&translators); for (y = 0; y < MAX_FORMAT; y++) { - if (!(cur & *dst)) + if (!(cur & *dst)) { + cur = cur << 1; continue; + } for (x = 0; x < MAX_FORMAT; x++) { if ((*srcs & (1 << x)) && /* x is a valid source format */ |