[FFmpeg-cvslog] vc1dec: fix block_off
Michael Niedermayer
git at videolan.org
Fri Feb 1 00:56:30 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 31 23:20:15 2013 +0100| [131fac1c12edacec254fcaed70dbf50f36603b3c] | committer: Michael Niedermayer
vc1dec: fix block_off
Fixes corruption of motion_val
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=131fac1c12edacec254fcaed70dbf50f36603b3c
---
libavcodec/vc1dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index e056ffb..01fe1ec 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;
More information about the ffmpeg-cvslog
mailing list