Mercurial > libavcodec.hg
changeset 12369:4787027b74b1 libavcodec
VP8: fix bug in prefetch
Motion vectors in VP8 are qpel, not fullpel.
author | darkshikari |
---|---|
date | Thu, 05 Aug 2010 20:03:54 +0000 |
parents | ba14e3adeccd |
children | 71b2c440157d |
files | vp8.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/vp8.c Thu Aug 05 19:45:57 2010 +0000 +++ b/vp8.c Thu Aug 05 20:03:54 2010 +0000 @@ -1155,8 +1155,8 @@ /* Don't prefetch refs that haven't been used very often this frame. */ if (s->ref_count[ref-1] > (mb_xy >> 5)) { int x_off = mb_x << 4, y_off = mb_y << 4; - int mx = mb->mv.x + x_off + 8; - int my = mb->mv.y + y_off; + int mx = (mb->mv.x>>2) + x_off + 8; + int my = (mb->mv.y>>2) + y_off; uint8_t **src= s->framep[ref]->data; int off= mx + (my + (mb_x&3)*4)*s->linesize + 64; s->dsp.prefetch(src[0]+off, s->linesize, 4);