# HG changeset patch # User michael # Date 1230302361 0 # Node ID 771f97593234aa58c0c29b9de36e2775d1f417f0 # Parent 4185a779d449e73a31f9d8425eb1879803b67cb6 10l != vs. == (yes, my fault not kostya's). diff -r 4185a779d449 -r 771f97593234 faxcompr.c --- a/faxcompr.c Fri Dec 26 13:52:07 2008 +0000 +++ b/faxcompr.c Fri Dec 26 14:39:21 2008 +0000 @@ -252,7 +252,7 @@ srcsize -= get_bits_count(gb); while(srcsize-- > 0){ state+= state + get_bits1(gb); - if((state & 0xFFF) != 1) + if((state & 0xFFF) == 1) return 0; } return -1;