Browse Source

vc1dec: fix block_off

Fixes corruption of motion_val

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
131fac1c12
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vc1dec.c

+ 1
- 1
libavcodec/vc1dec.c 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;


Loading…
Cancel
Save