changeset 7051:4f1331b0d428 libavcodec

simplify
author michael
date Mon, 16 Jun 2008 23:31:23 +0000
parents ecb7071103af
children 80ead68858f3
files g726.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/g726.c	Mon Jun 16 23:23:56 2008 +0000
+++ b/g726.c	Mon Jun 16 23:31:23 2008 +0000
@@ -52,8 +52,8 @@
         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;
 }