comparison faxcompr.c @ 10311:943b63f364ca libavcodec

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).
author kostya
date Tue, 29 Sep 2009 05:55:14 +0000
parents 86fadefa1143
children 27cb9c2c0c6b
comparison
equal deleted inserted replaced
10310:d3644248015a 10311:943b63f364ca
251 for(; run > 16; run -= 16) 251 for(; run > 16; run -= 16)
252 put_sbits(&pb, 16, mode); 252 put_sbits(&pb, 16, mode);
253 if(run) 253 if(run)
254 put_sbits(&pb, run, mode); 254 put_sbits(&pb, run, mode);
255 } 255 }
256 flush_put_bits(&pb);
256 } 257 }
257 258
258 static int find_group3_syncmarker(GetBitContext *gb, int srcsize) 259 static int find_group3_syncmarker(GetBitContext *gb, int srcsize)
259 { 260 {
260 unsigned int state = -1; 261 unsigned int state = -1;