mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
rv20: fix lowres out of array read
Fixes Ticket1239 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
febc013dc5
commit
0766b6e3ec
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user