summaryrefslogtreecommitdiff
path: root/main/translate.c
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2009-07-27 01:20:37 +0000
committerJeff Peeler <jpeeler@digium.com>2009-07-27 01:20:37 +0000
commit0f31e6c26cb3ade52805252ce7638ccc249b8a49 (patch)
tree1a4555ac5a465acbe94efcf6dad407e768da3362 /main/translate.c
parent85c3b3e3b5d7417d226027c144b436ca1b447a53 (diff)
Merged revisions 208923 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r208923 | jpeeler | 2009-07-26 20:18:31 -0500 (Sun, 26 Jul 2009) | 2 lines Fix logic errors from 208746 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@208924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/translate.c')
-rw-r--r--main/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/translate.c b/main/translate.c
index 4ac502476..1e85a3744 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -855,7 +855,7 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
destination format. */
for (x = 1; src_audio && (x & AST_FORMAT_AUDIO_MASK); x <<= 1) {
/* if this is not a desired format, nothing to do */
- if ((!dest) & x)
+ if (!(dest & x))
continue;
/* if the source is supplying this format, then
@@ -881,7 +881,7 @@ unsigned int ast_translate_available_formats(unsigned int dest, unsigned int src
destination format. */
for (; src_video && (x & AST_FORMAT_VIDEO_MASK); x <<= 1) {
/* if this is not a desired format, nothing to do */
- if ((!dest) & x)
+ if (!(dest & x))
continue;
/* if the source is supplying this format, then