diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 22:38:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-14 23:15:54 +0200 |
commit | b4e2e03709996a0836f6a71535d48b50201338eb (patch) | |
tree | 62592941724adb9cf05357eb81c9a9b47d89507b /libavcodec/lzwenc.c | |
parent | 5dd5985e0530214abd65a0bcdd711dd13ac0e880 (diff) | |
download | ffmpeg-b4e2e03709996a0836f6a71535d48b50201338eb.tar.gz |
avcodec/lzwenc: Add 1 additional bit of padding for gif
This fixes issues with gimp reading animated gifs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lzwenc.c')
-rw-r--r-- | libavcodec/lzwenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/lzwenc.c b/libavcodec/lzwenc.c index 7e30765cb9..0599d64c43 100644 --- a/libavcodec/lzwenc.c +++ b/libavcodec/lzwenc.c @@ -262,6 +262,9 @@ int ff_lzw_encode_flush(LZWEncodeState *s, if (s->last_code != -1) writeCode(s, s->last_code); writeCode(s, s->end_code); + if (s->mode == FF_LZW_GIF) + s->put_bits(&s->pb, 1, 0); + lzw_flush_put_bits(&s->pb); s->last_code = -1; |