diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-01-11 05:07:42 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-01-11 05:07:42 +0100 |
commit | c1d1ef4ecd9c4f1ca01c8149c7e57c14968ca588 (patch) | |
tree | 39048c4a28507b7f0f6d55e94f59cd46251545e3 /libavcodec | |
parent | 7b8c5b263bc680eff5710bee5994de39d47fc15e (diff) | |
download | ffmpeg-c1d1ef4ecd9c4f1ca01c8149c7e57c14968ca588.tar.gz |
zmbv: Reset the decoder on keyframe errors
Prevent the crash on fuzzed files as reported in bug 63.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/zmbv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 8e0db8b531..5d4254aec0 100644 --- a/libavcodec/zmbv.c +++ b/libavcodec/zmbv.c @@ -428,6 +428,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac c->fmt = buf[3]; c->bw = buf[4]; c->bh = buf[5]; + c->decode_intra = NULL; + c->decode_xor = NULL; buf += 6; len -= 6; |