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

michael subversion
Wed Jun 18 23:09:36 CEST 2008


Author: michael
Date: Wed Jun 18 23:09:36 2008
New Revision: 13807

Log:
simplify


Modified:
   trunk/libavcodec/g726.c

Modified: trunk/libavcodec/g726.c
==============================================================================
--- trunk/libavcodec/g726.c	(original)
+++ trunk/libavcodec/g726.c	Wed Jun 18 23:09:36 2008
@@ -244,7 +244,7 @@ static int16_t g726_decode(G726Context* 
         c->ap += (0x200 - c->ap) >> 4;
 
     /* Update Yu and Yl */
-    c->yu = av_clip(c->y + (((c->tbls->W[I] << 5) - c->y) >> 5), 544, 5120);
+    c->yu = av_clip(c->y + c->tbls->W[I] + ((-c->y)>>5), 544, 5120);
     c->yl += c->yu + ((-c->yl)>>6);
 
     /* Next iteration for Y */




More information about the ffmpeg-cvslog mailing list