diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-16 23:31:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-16 23:31:23 +0000 |
commit | 7d7a9e7f37eaf30b45af7afc5ea7a0de05a5b3d7 (patch) | |
tree | 7d67df8b915eca99c602fcf9ef311029ed2f1a01 /libavcodec/g726.c | |
parent | aca490777f9da2a71b537874ed4e16105bb3df02 (diff) | |
download | ffmpeg-7d7a9e7f37eaf30b45af7afc5ea7a0de05a5b3d7.tar.gz |
simplify
Originally committed as revision 13788 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g726.c')
-rw-r--r-- | libavcodec/g726.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c index 88f7cee380..6086e389aa 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -52,8 +52,8 @@ static inline int16_t mult(Float11* f1, Float11* f2) int res, exp; exp = f1->exp + f2->exp; - res = (((f1->mant * f2->mant) + 0x30) >> 4) << 7; - res = exp > 26 ? res << (exp - 26) : res >> (26 - exp); + res = (((f1->mant * f2->mant) + 0x30) >> 4); + res = exp > 19 ? res << (exp - 19) : res >> (19 - exp); return (f1->sign ^ f2->sign) ? -res : res; } |