From 0b16cdc3fa1d73056649abf43288be0a7624fdcc Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 17 Feb 2011 12:14:12 -0500 Subject: [PATCH] VC1: simplify a calculation in a loop. --- libavcodec/vc1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- GitLab