OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4e2e03
)
avcodec/gif: use the whole allocated buffer
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 14 Aug 2013 20:51:06 +0000
(22:51 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 14 Aug 2013 21:15:54 +0000
(23:15 +0200)
Fixes some gif encoding failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/gif.c
patch
|
blob
|
history
diff --git
a/libavcodec/gif.c
b/libavcodec/gif.c
index
bfe91ca
..
bd14c13
100644
(file)
--- 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;