add and remove some parentheses
authorBenoit Fouet <benoit.fouet@free.fr>
Thu, 14 Jun 2007 09:32:04 +0000 (09:32 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Thu, 14 Jun 2007 09:32:04 +0000 (09:32 +0000)
Originally committed as revision 9308 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/flac.c

index b629a91..c20a6b5 100644 (file)
@@ -673,8 +673,8 @@ static int flac_decode_frame(AVCodecContext *avctx,
             {\
                 int a= s->decoded[0][i];\
                 int b= s->decoded[1][i];\
             {\
                 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;
 
             }\
             break;
 
@@ -684,7 +684,7 @@ static int flac_decode_frame(AVCodecContext *avctx,
             for (j = 0; j < s->blocksize; j++)
             {
                 for (i = 0; i < s->channels; i++)
             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:
             }
             break;
         case LEFT_SIDE: