Browse code

mov_chan: Fix operator precedence by adding parentheses

Signed-off-by: Martin Storsjö <martin@martin.st>

Martin Storsjö authored on 2012/06/17 08:08:00
Showing 1 changed files
... ...
@@ -492,7 +492,7 @@ uint32_t ff_mov_get_channel_layout_tag(enum CodecID codec_id,
492 492
 
493 493
         /* find the layout tag for the specified channel layout */
494 494
         for (i = 0; layouts[i] != 0; i++) {
495
-            if (layouts[i] & 0xFFFF != channels)
495
+            if ((layouts[i] & 0xFFFF) != channels)
496 496
                 continue;
497 497
             for (j = 0; layout_map[j].tag != 0; j++) {
498 498
                 if (layout_map[j].tag    == layouts[i] &&