changeset 5141:67953f3ef896 libavcodec

add and remove some parentheses
author benoit
date Thu, 14 Jun 2007 09:32:04 +0000
parents 9d4ca30481e0
children 16edc523f0c9
files flac.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flac.c	Thu Jun 14 08:44:41 2007 +0000
+++ b/flac.c	Thu Jun 14 09:32:04 2007 +0000
@@ -673,8 +673,8 @@
             {\
                 int a= s->decoded[0][i];\
                 int b= s->decoded[1][i];\
-                *(samples++) = (left  << (24 - s->bps)) >> 8;\
-                *(samples++) = (right << (24 - s->bps)) >> 8;\
+                *samples++ = ((left)  << (24 - s->bps)) >> 8;\
+                *samples++ = ((right) << (24 - s->bps)) >> 8;\
             }\
             break;
 
@@ -684,7 +684,7 @@
             for (j = 0; j < s->blocksize; j++)
             {
                 for (i = 0; i < s->channels; i++)
-                    *(samples++) = (s->decoded[i][j] << (24 - s->bps)) >> 8;
+                    *samples++ = (s->decoded[i][j] << (24 - s->bps)) >> 8;
             }
             break;
         case LEFT_SIDE: