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

michael subversion
Tue Jun 17 15:46:59 CEST 2008


Author: michael
Date: Tue Jun 17 15:46:59 2008
New Revision: 13797

Log:
simplify


Modified:
   trunk/libavcodec/g726.c

Modified: trunk/libavcodec/g726.c
==============================================================================
--- trunk/libavcodec/g726.c	(original)
+++ trunk/libavcodec/g726.c	Tue Jun 17 15:46:59 2008
@@ -180,7 +180,7 @@ static inline int16_t inverse_quant(G726
     dql = c->tbls->iquant[i] + (c->y >> 2);
     dex = (dql>>7) & 0xf;        /* 4bit exponent */
     dqt = (1<<7) + (dql & 0x7f); /* log2 -> linear */
-    return (dql < 0) ? 0 : ((dqt<<7) >> (14-dex));
+    return (dql < 0) ? 0 : ((dqt<<dex) >> 7);
 }
 
 static int16_t g726_decode(G726Context* c, int16_t I)




More information about the ffmpeg-cvslog mailing list