[FFmpeg-cvslog] avcodec/gif: use the whole allocated buffer
Michael Niedermayer
git at videolan.org
Wed Aug 14 23:20:21 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 14 22:51:06 2013 +0200| [796b20fa1cef691f2a74215b5a33b722c307d21f] | committer: Michael Niedermayer
avcodec/gif: use the whole allocated buffer
Fixes some gif encoding failures
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=796b20fa1cef691f2a74215b5a33b722c307d21f
---
libavcodec/gif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index bfe91ca..bd14c13 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;
More information about the ffmpeg-cvslog
mailing list