diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-05-06 09:16:36 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-05-06 09:16:36 +0000 |
commit | ccd425e7993ef0e76da7bf10c566d33f7acc7c6d (patch) | |
tree | 29a2af2f8eb50c22d5b23cca7763d9d507273cab /libavcodec/pcm.c | |
parent | 91605c69fb79bc37e7b8ae756b42bbe1f3cf5423 (diff) | |
download | ffmpeg-ccd425e7993ef0e76da7bf10c566d33f7acc7c6d.tar.gz |
Remove unnecessary parentheses from return calls.
Originally committed as revision 13069 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index c3631936f0..0c47eedff6 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -56,7 +56,7 @@ static av_cold int alaw2linear(unsigned char a_val) 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 @@ static av_cold int ulaw2linear(unsigned char u_val) 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 */ |