aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2010-08-05 20:03:54 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2010-08-05 20:03:54 +0000
commit7e13022a4dfd412229ccca4adb6f60b8331b5adf (patch)
tree630cb8dbf1b030d87241bb00b21a5217beacf2fd /libavcodec
parentfa2d5d54b9a6854fcd17829e9fad0a2de13c0325 (diff)
downloadffmpeg-7e13022a4dfd412229ccca4adb6f60b8331b5adf.tar.gz
VP8: fix bug in prefetch
Motion vectors in VP8 are qpel, not fullpel. Originally committed as revision 24707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 329e6053f8..56bfbbb656 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -1155,8 +1155,8 @@ static av_always_inline void prefetch_motion(VP8Context *s, VP8Macroblock *mb, i
/* 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);