changeset 7066:f23e64bcec1e libavcodec

simplify
author michael
date Wed, 18 Jun 2008 21:09:36 +0000
parents 87767de54b7b
children 4630168a70d5
files g726.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/g726.c	Wed Jun 18 21:05:07 2008 +0000
+++ b/g726.c	Wed Jun 18 21:09:36 2008 +0000
@@ -244,7 +244,7 @@
         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 */