aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-07 16:07:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-09 22:16:23 +0200
commit7ee5e97c46e30fb3d6f9f78cc3313dbc06528b37 (patch)
treedbfaa48ae818c8719836471d43badf7e686f6144 /libavcodec
parent7ef2dbd2392e3e4d430e0173e1e5c4df9f18b6dd (diff)
downloadffmpeg-7ee5e97c46e30fb3d6f9f78cc3313dbc06528b37.tar.gz
gifdec: reset previous Graphic Control Extension disposal type
This fixes out of array accesses. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d23b8462b5a4a9da78ed45c4a7a3b35d538df909) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/gifdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index 8fb1f4bbbd..727887ab44 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -462,6 +462,7 @@ static int gif_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, A
if (s->keyframe) {
s->keyframe_ok = 0;
+ s->gce_prev_disposal = GCE_DISPOSAL_NONE;
if ((ret = gif_read_header1(s)) < 0)
return ret;