[FFmpeg-cvslog] svq1dec: replace /2 by >>1
Michael Niedermayer
git at videolan.org
Sun May 8 01:31:31 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 8 01:26:07 2011 +0200| [8f5729d54dbbe48e87c440f5afb5f5f52c9f6052] | committer: Michael Niedermayer
svq1dec: replace /2 by >>1
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f5729d54dbbe48e87c440f5afb5f5f52c9f6052
---
libavcodec/svq1dec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index f559c73..e2ff716 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()\
More information about the ffmpeg-cvslog
mailing list