projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d62a0c1
)
replace if(x>>b) by if(x>C) as shifts are slow on some cpus and i have my doubts...
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 31 Jan 2007 10:07:22 +0000
(10:07 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 31 Jan 2007 10:07:22 +0000
(10:07 +0000)
Originally committed as revision 7776 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/lzo.c
patch
|
blob
|
history
diff --git
a/libavcodec/lzo.c
b/libavcodec/lzo.c
index
e4a1111
..
54a34c2
100644
(file)
--- a/
libavcodec/lzo.c
+++ b/
libavcodec/lzo.c
@@
-184,11
+184,11
@@
int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) {
}
while (!c.error) {
int cnt, back;
- if (x >
> 4
) {
- if (x >
> 6
) {
+ if (x >
15
) {
+ if (x >
63
) {
cnt = (x >> 5) - 1;
back = (GETB(c) << 3) + ((x >> 2) & 7) + 1;
- } else if (x >
> 5
) {
+ } else if (x >
31
) {
cnt = get_len(&c, x, 31);
x = GETB(c);
back = (GETB(c) << 6) + (x >> 2) + 1;