Commit b4d372e0 authored by Keiji Costantini's avatar Keiji Costantini Committed by Diego Biurrun

rv10: Forward error from rv10_decode_packet

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent a8014534
......@@ -707,7 +707,10 @@ static int rv10_decode_frame(AVCodecContext *avctx,
offset + FFMAX(size, size2) > buf_size)
return AVERROR_INVALIDDATA;
if (rv10_decode_packet(avctx, buf + offset, size, size2) > 8 * size)
if ((ret = rv10_decode_packet(avctx, buf + offset, size, size2)) < 0)
return ret;
if (ret > 8 * size)
i++;
}
......
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