Commit 35f38b3a authored by Michael Niedermayer's avatar Michael Niedermayer

rv34: check for size mismatch

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a5dc990a
......@@ -1343,6 +1343,10 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int
av_log(s->avctx, AV_LOG_ERROR, "Slice type mismatch\n");
return AVERROR_INVALIDDATA;
}
if (s->width != r->si.width || s->height != r->si.height) {
av_log(s->avctx, AV_LOG_ERROR, "Size mismatch\n");
return AVERROR_INVALIDDATA;
}
}
r->si.end = end;
......
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