diff options
| author | Philip Heron <phil@sanslogic.co.uk> | 2011-06-24 20:56:32 +0100 |
|---|---|---|
| committer | Philip Heron <phil@sanslogic.co.uk> | 2011-06-24 20:56:32 +0100 |
| commit | be051b1ae2b2e9dd0063e00877fcaca7896a575f (patch) | |
| tree | a81a6bc84b95741cf0fdc5efb2be7d313cc5f29b | |
| parent | eb537bb22bc46dd632ac8c0cc84575bc96f481a2 (diff) | |
Fix issue where exact huffman code matches were missed
| -rw-r--r-- | ssdv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -159,7 +159,7 @@ static inline char jpeg_dht_lookup(ssdv_t *s, uint8_t *symbol, uint8_t *width) for(cw = 1; cw <= 16; cw++) { /* Got enough bits? */ - if(cw >= s->worklen) return(SSDV_FEED_ME); + if(cw > s->worklen) return(SSDV_FEED_ME); /* Compare against each code 'cw' bits wide */ for(n = dht[cw]; n > 0; n--) |
