1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

vc1dec: fix block_off

Fixes corruption of motion_val

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-31 23:20:15 +01:00
parent b999774f0b
commit 131fac1c12

View File

@ -5672,7 +5672,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
continue; continue;
} }
v->second_field = 1; 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; v->mb_off = s->mb_stride * s->mb_height >> 1;
} else { } else {
v->second_field = 0; v->second_field = 0;