summaryrefslogtreecommitdiff
path: root/libavcodec/gif.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-14 22:51:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-14 23:15:54 +0200
commit796b20fa1cef691f2a74215b5a33b722c307d21f (patch)
tree813ab2a167dc5eb384ee959e580edd85abe1de8e /libavcodec/gif.c
parentb4e2e03709996a0836f6a71535d48b50201338eb (diff)
downloadffmpeg-796b20fa1cef691f2a74215b5a33b722c307d21f.tar.gz
avcodec/gif: use the whole allocated buffer
Fixes some gif encoding failures Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/gif.c')
-rw-r--r--libavcodec/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index bfe91caaa4..bd14c137d2 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -168,7 +168,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
bytestream_put_byte(bytestream, 0x08);
- ff_lzw_encode_init(s->lzw, s->buf, width * height,
+ ff_lzw_encode_init(s->lzw, s->buf, 2 * width * height,
12, FF_LZW_GIF, put_bits);
ptr = buf + y_start*linesize + x_start;