# HG changeset patch # User kostya # Date 1254203714 0 # Node ID 943b63f364cafecc9f51eb33a9da1677ca4488aa # Parent d3644248015aaaecc590561c1a3de0fc5b7cd0b1 Make sure all the bits are written to output in fax data decoder. This fixes decoding TIFF images with fax compression and width being not multiple of eight (and issue 1429). diff -r d3644248015a -r 943b63f364ca faxcompr.c --- a/faxcompr.c Mon Sep 28 21:46:22 2009 +0000 +++ b/faxcompr.c Tue Sep 29 05:55:14 2009 +0000 @@ -253,6 +253,7 @@ if(run) put_sbits(&pb, run, mode); } + flush_put_bits(&pb); } static int find_group3_syncmarker(GetBitContext *gb, int srcsize)