aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-08 01:26:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-08 01:33:40 +0200
commit732ff29bff1b42c9471d7aa699efae6ffd1b5d61 (patch)
tree922de7c3cd8eef4e9f9da9651b065c8d2aab1c24 /libavcodec/svq1dec.c
parent8f5729d54dbbe48e87c440f5afb5f5f52c9f6052 (diff)
downloadffmpeg-732ff29bff1b42c9471d7aa699efae6ffd1b5d61.tar.gz
svq1dec: simpify mean calculation.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq1dec.c')
-rw-r--r--libavcodec/svq1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index e2ff71682f..eff1454241 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -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;