projects
/
platform
/
upstream
/
v4l-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c7c70f
)
Fix compiler warning in sq905c decompression code
author
Theodore Kilgore
<kilgota@banach.math.auburn.edu>
Fri, 12 Mar 2010 07:06:01 +0000
(08:06 +0100)
committer
Hans de Goede
<hdegoede@redhat.com>
Fri, 12 Mar 2010 08:10:32 +0000
(09:10 +0100)
Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
lib/libv4lconvert/sq905c.c
patch
|
blob
|
history
diff --git
a/lib/libv4lconvert/sq905c.c
b/lib/libv4lconvert/sq905c.c
index
a73b4da
..
77f3bf3
100644
(file)
--- a/
lib/libv4lconvert/sq905c.c
+++ b/
lib/libv4lconvert/sq905c.c
@@
-71,18
+71,18
@@
sq905c_first_decompress(unsigned char *output, const unsigned char *input,
temp1 = (temp1 << 1) & 0xFF;
bit_counter++;
cycles++;
- if (cycles >
9
)
+ if (cycles >
8
)
return -1;
lookup = temp2 & 0xff;
}
temp2 = 0;
for (i = 0; i < 17; i++) {
+ if (i == 16)
+ return -1;
if (lookup == lookup_table[i]) {
nibble_to_keep[parity] = translator[i];
break;
}
- if (i == 16)
- return -1;
}
cycles = 0;
parity++;