rv34: check for size mismatch
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit35f38b3ab9) (cherry picked from commited9e561490) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1276,6 +1276,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;
|
||||
|
||||
Reference in New Issue
Block a user