aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-18 21:09:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-18 21:09:36 +0000
commit4714776b6af0ff11bbd9130b4c2239c56ea940a9 (patch)
treee52dcc972084721e3b1ef0f0dcc0b521acf49fa3
parent673a64b89b6fd715bb74c61d9d5e773a3dfef702 (diff)
downloadffmpeg-4714776b6af0ff11bbd9130b4c2239c56ea940a9.tar.gz
simplify
Originally committed as revision 13807 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/g726.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index aeb2360d8c..a40521b483 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -244,7 +244,7 @@ static int16_t g726_decode(G726Context* c, int16_t I)
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 */