summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenoit <benoit@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-17 11:07:27 +0000
committerbenoit <benoit@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-17 11:07:27 +0000
commitef1ae8fd190d1f7afe65a4637e9c493ddec5ec64 (patch)
tree9072a9e4f721914e0d93bb995d33ad986f8f991e
parentbc7d838528478ceae9e36abfc3fa03ee46c3ce3b (diff)
downloadmpv-ef1ae8fd190d1f7afe65a4637e9c493ddec5ec64.tar.bz2
mpv-ef1ae8fd190d1f7afe65a4637e9c493ddec5ec64.tar.xz
Remove some useless parentheses.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25779 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/rgb2rgb_template.c4
-rw-r--r--libswscale/swscale-example.c2
-rw-r--r--libswscale/swscale_altivec_template.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c
index 129ac401a1..285d21f911 100644
--- a/libswscale/rgb2rgb_template.c
+++ b/libswscale/rgb2rgb_template.c
@@ -1621,7 +1621,7 @@ static inline void RENAME(yuvPlanartoyuy2)(const uint8_t *ysrc, const uint8_t *u
}
#endif
#endif
- if ((y&(vertLumPerChroma-1))==(vertLumPerChroma-1) )
+ if ((y&(vertLumPerChroma-1)) == vertLumPerChroma-1)
{
usrc += chromStride;
vsrc += chromStride;
@@ -1727,7 +1727,7 @@ static inline void RENAME(yuvPlanartouyvy)(const uint8_t *ysrc, const uint8_t *u
}
#endif
#endif
- if ((y&(vertLumPerChroma-1))==(vertLumPerChroma-1))
+ if ((y&(vertLumPerChroma-1)) == vertLumPerChroma-1)
{
usrc += chromStride;
vsrc += chromStride;
diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c
index adfe7bccbe..124128b377 100644
--- a/libswscale/swscale-example.c
+++ b/libswscale/swscale-example.c
@@ -76,7 +76,7 @@ static int doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcFormat
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;
diff --git a/libswscale/swscale_altivec_template.c b/libswscale/swscale_altivec_template.c
index b8043b7e54..5a4a245a3a 100644
--- a/libswscale/swscale_altivec_template.c
+++ b/libswscale/swscale_altivec_template.c
@@ -354,7 +354,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int
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 @@ static inline int yv12toyuy2_unscaled_altivec(SwsContext *c, uint8_t* src[], int
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 @@ static inline int yv12touyvy_unscaled_altivec(SwsContext *c, uint8_t* src[], int
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;
}