Commit c1d1ef4e authored by Luca Barbato's avatar Luca Barbato

zmbv: Reset the decoder on keyframe errors

Prevent the crash on fuzzed files as reported in bug 63.
parent 7b8c5b26
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment