Commit 6c0d9369 authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Michael Niedermayer

VC1: simplify a calculation in a loop.

(cherry picked from commit 0b16cdc3)
parent 2739dc5d
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment