Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-02-17 20:14:12 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-02-18 21:52:39 +0300
commit6c0d9369d881b143628fdc24b105a4a2c60d67c2 (patch)
tree70a16bfdb77167885cb024573b7801d646116f55 /libavcodec
parent2739dc5d858a18c4d10f043af0e31a8a57ca147f (diff)
VC1: simplify a calculation in a loop.
(cherry picked from commit 0b16cdc3fa1d73056649abf43288be0a7624fdcc)
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 169797ca75..e254d1b0b8 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -199,7 +199,7 @@ static void vc1_put_block(VC1Context *v, DCTELEM block[6][64])
for(k = 0; k < 6; k++)
for(j = 0; j < 8; j++)
for(i = 0; i < 8; i++)
- block[k][i + j*8] = ((block[k][i + j*8] - 128) << 1) + 128;
+ block[k][i + j*8] = (block[k][i + j*8] - 64) << 1;
}
ys = v->s.current_picture.linesize[0];