[FFmpeg-cvslog] r13788 - trunk/libavcodec/g726.c

michael subversion
Tue Jun 17 01:31:23 CEST 2008


Author: michael
Date: Tue Jun 17 01:31:23 2008
New Revision: 13788

Log:
simplify


Modified:
   trunk/libavcodec/g726.c

Modified: trunk/libavcodec/g726.c
==============================================================================
--- trunk/libavcodec/g726.c	(original)
+++ trunk/libavcodec/g726.c	Tue Jun 17 01:31:23 2008
@@ -52,8 +52,8 @@ static inline int16_t mult(Float11* f1, 
         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;
 }
 




More information about the ffmpeg-cvslog mailing list