Commit 0766b6e3 authored by Michael Niedermayer's avatar Michael Niedermayer

rv20: fix lowres out of array read

Fixes Ticket1239
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent febc013d
......@@ -349,7 +349,7 @@ static int rv20_decode_picture_header(RVDecContext *rv)
}
if(RV_GET_MINOR_VER(rv->sub_id) >= 2)
s->loop_filter = get_bits1(&s->gb);
s->loop_filter = get_bits1(&s->gb) && !s->avctx->lowres;
if(RV_GET_MINOR_VER(rv->sub_id) <= 1)
seq = get_bits(&s->gb, 8) << 7;
......
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