diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-07 16:07:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-07 17:03:34 +0200 |
commit | d23b8462b5a4a9da78ed45c4a7a3b35d538df909 (patch) | |
tree | 02c9fa0c56fef209d8e0a12f5d5055424b929813 /libavcodec/gifdec.c | |
parent | d3f7b98f87fffe3e79ba2df4b88f807763215cc4 (diff) | |
download | ffmpeg-d23b8462b5a4a9da78ed45c4a7a3b35d538df909.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>
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r-- | libavcodec/gifdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 997bd42ecb..5ca82e3255 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -461,6 +461,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; |