Commit 732ff29b authored by Michael Niedermayer's avatar Michael Niedermayer

svq1dec: simpify mean calculation.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8f5729d5
......@@ -202,7 +202,7 @@ static const uint8_t string_table[256] = {
entries[j] = (((bit_cache >> (4*(stages - j - 1))) & 0xF) + 16*j) << (level + 1);\
}\
mean -= (stages * 128);\
n4 = ((mean + (mean >> 31)) << 16) | (mean & 0xFFFF);
n4 = (mean << 16) + mean;
static int svq1_decode_block_intra (GetBitContext *bitbuf, uint8_t *pixels, int pitch ) {
uint32_t bit_cache;
......
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