[FFmpeg-cvslog] mov_chan: Fix operator precedence by adding parentheses

Martin Storsjö git at videolan.org
Sun Jun 17 23:00:07 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Jun 17 02:08:00 2012 +0300| [44fdf37c94ed1f5ecc42ef129cbaebff92addd0e] | committer: Martin Storsjö

mov_chan: Fix operator precedence by adding parentheses

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=44fdf37c94ed1f5ecc42ef129cbaebff92addd0e
---

 libavformat/mov_chan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov_chan.c b/libavformat/mov_chan.c
index a0fbecc..a843e31 100644
--- a/libavformat/mov_chan.c
+++ b/libavformat/mov_chan.c
@@ -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] &&



More information about the ffmpeg-cvslog mailing list