summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-31 23:20:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-31 23:22:11 +0100
commit131fac1c12edacec254fcaed70dbf50f36603b3c (patch)
tree326567e3313bf69f20e0721f3fc8c8c86b671352 /libavcodec/vc1dec.c
parentb999774f0b11a402ad6b346fc8418e8bde7140d4 (diff)
vc1dec: fix block_off
Fixes corruption of motion_val Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
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;