From 131fac1c12edacec254fcaed70dbf50f36603b3c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 31 Jan 2013 23:20:15 +0100 Subject: [PATCH] vc1dec: fix block_off Fixes corruption of motion_val Signed-off-by: Michael Niedermayer --- libavcodec/vc1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index e056ffb525..01fe1ec848 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -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;