summaryrefslogtreecommitdiff
path: root/libavcodec/svq1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-08 01:26:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-08 01:33:40 +0200
commit8f5729d54dbbe48e87c440f5afb5f5f52c9f6052 (patch)
treeb6584978c80472bd967c00b1e1d204af6468e4d4 /libavcodec/svq1dec.c
parent0257ac8f12099e0c4d784e0db219584cbb739ce2 (diff)
downloadffmpeg-8f5729d54dbbe48e87c440f5afb5f5f52c9f6052.tar.gz
svq1dec: replace /2 by >>1
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 f559c737ab..e2ff71682f 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -142,7 +142,7 @@ static const uint8_t string_table[256] = {
break;\
/* add child nodes */\
list[n++] = list[i];\
- list[n++] = list[i] + (((level & 1) ? pitch : 1) << ((level / 2) + 1));\
+ list[n++] = list[i] + (((level & 1) ? pitch : 1) << ((level >> 1) + 1));\
}
#define SVQ1_ADD_CODEBOOK()\