Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-09-29 09:55:14 +0400
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-09-29 09:55:14 +0400
commita5568f460826b7ce068e81b2d51f35c5052287ed (patch)
tree554f947370676a8e33862ff8b9041b23b8e2a3ff /libavcodec/faxcompr.c
parent0b8e7ab059f3038a6a662ea743f4f7d2de6722ef (diff)
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). Originally committed as revision 20072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/faxcompr.c')
-rw-r--r--libavcodec/faxcompr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index 3b7d8e61c7..9266e54919 100644
--- a/libavcodec/faxcompr.c
+++ b/libavcodec/faxcompr.c
@@ -253,6 +253,7 @@ static void put_line(uint8_t *dst, int size, int width, const int *runs)
if(run)
put_sbits(&pb, run, mode);
}
+ flush_put_bits(&pb);
}
static int find_group3_syncmarker(GetBitContext *gb, int srcsize)