aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-10 16:12:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-10 22:33:41 +0200
commit436c4523ed447b88759900b3e6647c5b9d03a63b (patch)
tree1665fd5470f8980d9e863fa960d7d02a43126205 /libavcodec
parentdc172ecc6e59fb3e53af2991e00e0e81fe3c8884 (diff)
downloadffmpeg-436c4523ed447b88759900b3e6647c5b9d03a63b.tar.gz
H264: fix prefetch
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index ccde0cb0e1..eee8c4b6ae 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -639,7 +639,7 @@ static inline void prefetch_motion(H264Context *h, int list){
uint8_t **src= h->ref_list[list][refn].data;
int off= mx*h->pixel_size + (my + (s->mb_x&3)*4)*h->mb_linesize + 64*h->pixel_size;
s->dsp.prefetch(src[0]+off, s->linesize, 4);
- off= (mx>>1)*h->pixel_size + ((my>>1)*h->pixel_size + (s->mb_x&7))*s->uvlinesize + 64*h->pixel_size;
+ off= (mx>>1)*h->pixel_size + ((my>>1) + (s->mb_x&7))*s->uvlinesize + 64*h->pixel_size;
s->dsp.prefetch(src[1]+off, src[2]-src[1], 2);
}
}