diff options
-rw-r--r-- | translate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/translate.c b/translate.c index 306774d78..799a4440d 100644 --- a/translate.c +++ b/translate.c @@ -471,8 +471,10 @@ int ast_translator_best_choice(int *dst, int *srcs) /* We will need to translate */ ast_mutex_lock(&list_lock); 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 */ |