changeset 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 d3644248015a
children 6aaf7c9e768b
files faxcompr.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)