mov_chan: Fix operator precedence by adding parentheses
authorMartin Storsjö <martin@martin.st>
Sat, 16 Jun 2012 23:08:00 +0000 (02:08 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 17 Jun 2012 14:51:50 +0000 (17:51 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov_chan.c

index a0fbecc..a843e31 100644 (file)
@@ -492,7 +492,7 @@ uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id,
 
         /* find the layout tag for the specified channel layout */
         for (i = 0; layouts[i] != 0; i++) {
-            if (layouts[i] & 0xFFFF != channels)
+            if ((layouts[i] & 0xFFFF) != channels)
                 continue;
             for (j = 0; layout_map[j].tag != 0; j++) {
                 if (layout_map[j].tag    == layouts[i] &&