changeset 25751:147deb141e07

Remove some useless parentheses.
author benoit
date Thu, 17 Jan 2008 11:07:27 +0000
parents 06bf0eb70a55
children 559b0e9d47fb
files libswscale/rgb2rgb_template.c libswscale/swscale-example.c libswscale/swscale_altivec_template.c
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/rgb2rgb_template.c	Thu Jan 17 10:24:14 2008 +0000
+++ b/libswscale/rgb2rgb_template.c	Thu Jan 17 11:07:27 2008 +0000
@@ -1621,7 +1621,7 @@
         }
 #endif
 #endif
-        if ((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) )
+        if ((y&(vertLumPerChroma-1)) == vertLumPerChroma-1)
         {
             usrc += chromStride;
             vsrc += chromStride;
@@ -1727,7 +1727,7 @@
         }
 #endif
 #endif
-        if ((y&(vertLumPerChroma-1))==(vertLumPerChroma-1))
+        if ((y&(vertLumPerChroma-1)) == vertLumPerChroma-1)
         {
             usrc += chromStride;
             vsrc += chromStride;
--- a/libswscale/swscale-example.c	Thu Jan 17 10:24:14 2008 +0000
+++ b/libswscale/swscale-example.c	Thu Jan 17 11:07:27 2008 +0000
@@ -76,7 +76,7 @@
         src[i]= (uint8_t*) malloc(srcStride[i]*srcH);
         dst[i]= (uint8_t*) malloc(dstStride[i]*dstH);
         out[i]= (uint8_t*) malloc(refStride[i]*h);
-        if ((src[i] == NULL) || (dst[i] == NULL) || (out[i] == NULL)) {
+        if (src[i] == NULL || dst[i] == NULL || out[i] == NULL) {
             perror("Malloc");
             res = -1;
 
--- a/libswscale/swscale_altivec_template.c	Thu Jan 17 10:24:14 2008 +0000
+++ b/libswscale/swscale_altivec_template.c	Thu Jan 17 11:07:27 2008 +0000
@@ -354,7 +354,7 @@
             src_v0 = src_v1;
         }
 
-        if (j < (filterSize-7)) {
+        if (j < filterSize-7) {
             // loading src_v0 is useless, it's already done above
             //vector unsigned char src_v0 = vec_ld(srcPos + j, src);
             vector unsigned char src_v1, src_vF;
@@ -450,7 +450,7 @@
             vec_st(v_yuy2_0, (i << 1), dst);
             vec_st(v_yuy2_1, (i << 1) + 16, dst);
         }
-        if ((y&(vertLumPerChroma-1))==(vertLumPerChroma-1)) {
+        if ((y&(vertLumPerChroma-1)) == vertLumPerChroma-1) {
             usrc += chromStride;
             vsrc += chromStride;
         }
@@ -527,7 +527,7 @@
             vec_st(v_uyvy_0, (i << 1), dst);
             vec_st(v_uyvy_1, (i << 1) + 16, dst);
         }
-        if ((y&(vertLumPerChroma-1))==(vertLumPerChroma-1)) {
+        if ((y&(vertLumPerChroma-1)) == vertLumPerChroma-1) {
             usrc += chromStride;
             vsrc += chromStride;
         }