Commit 131fac1c authored by Michael Niedermayer's avatar Michael Niedermayer

vc1dec: fix block_off

Fixes corruption of motion_val
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b999774f
......@@ -5672,7 +5672,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
continue;
}
v->second_field = 1;
v->blocks_off = s->mb_width * s->mb_height << 1;
v->blocks_off = s->b8_stride * (s->mb_height&~1);
v->mb_off = s->mb_stride * s->mb_height >> 1;
} else {
v->second_field = 0;
......
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