Mercurial > libavcodec.hg
diff pcm.c @ 6750:c93570aeb3eb libavcodec
Remove unnecessary parentheses from return calls.
author | diego |
---|---|
date | Tue, 06 May 2008 09:16:36 +0000 |
parents | 0557f6cc5ed0 |
children | dd70fdc9993a |
line wrap: on
line diff
--- a/pcm.c Sun May 04 22:39:12 2008 +0000 +++ b/pcm.c Tue May 06 09:16:36 2008 +0000 @@ -56,7 +56,7 @@ if(seg) t= (t + t + 1 + 32) << (seg + 2); else t= (t + t + 1 ) << 3; - return ((a_val & SIGN_BIT) ? t : -t); + return (a_val & SIGN_BIT) ? t : -t; } static av_cold int ulaw2linear(unsigned char u_val) @@ -73,7 +73,7 @@ t = ((u_val & QUANT_MASK) << 3) + BIAS; t <<= ((unsigned)u_val & SEG_MASK) >> SEG_SHIFT; - return ((u_val & SIGN_BIT) ? (BIAS - t) : (t - BIAS)); + return (u_val & SIGN_BIT) ? (BIAS - t) : (t - BIAS); } /* 16384 entries per table */