diff options
author | Luca Barbato <[email protected]> | 2013-01-11 05:07:42 +0100 |
---|---|---|
committer | Luca Barbato <[email protected]> | 2013-01-11 12:42:56 +0100 |
commit | fbde7b2d0aebf2b0123f6a19f871a904322a5b45 (patch) | |
tree | a33df3694ab602a253765a3c992a219b33998c57 | |
parent | 58baa367d696f206709a5eb195bbc514467ac82a (diff) |
zmbv: Reset the decoder on keyframe errors
Prevent the crash on fuzzed files as reported in bug 63.
(cherry picked from commit c1d1ef4ecd9c4f1ca01c8149c7e57c14968ca588)
Signed-off-by: Luca Barbato <[email protected]>
-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 0733fa70d4..c92e553f6d 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; |