summaryrefslogtreecommitdiff
path: root/source/fitz/filter-lzw.c
AgeCommit message (Collapse)Author
2013-08-28sync bits when closing an LZW streamSimon Bünzli
Content streams may contain multiple inline images compressed as LZW data. The LZW filter used for such inline images might in some cases be closed in a state where less than 8 bits remain unread. The parent stream remembers that number (in stream->avail) and uses it again when reading the next inline image instead of resetting the remaining bit count when reading the next entire byte after the first inline image (or resetting it when closing the LZW stream as this patch does).
2013-06-20Rearrange source files.Tor Andersson