diff 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
line wrap: on
line diff
--- 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)