[FFmpeg-cvslog] r24443 - trunk/libavcodec/vp8.c

darkshikari subversion
Fri Jul 23 00:15:43 CEST 2010


Author: darkshikari
Date: Fri Jul 23 00:15:43 2010
New Revision: 24443

Log:
Fix stupid bug in VP8 prefetching code

Modified:
   trunk/libavcodec/vp8.c

Modified: trunk/libavcodec/vp8.c
==============================================================================
--- trunk/libavcodec/vp8.c	Fri Jul 23 00:11:45 2010	(r24442)
+++ trunk/libavcodec/vp8.c	Fri Jul 23 00:15:43 2010	(r24443)
@@ -1083,15 +1083,13 @@ static inline void vp8_mc_part(VP8Contex
  * Optimized for 64-byte cache lines.  Inspired by ffh264 prefetch_motion. */
 static inline void prefetch_motion(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, int x_off, int y_off, int ref)
 {
-    if (mb->ref_frame != VP56_FRAME_CURRENT) {
-        int mx = mb->mv.x + x_off + 8;
-        int my = mb->mv.y + y_off;
-        uint8_t **src= s->framep[mb->ref_frame]->data;
-        int off= mx + (my + (mb_x&3)*4)*s->linesize + 64;
-        s->dsp.prefetch(src[0]+off, s->linesize, 4);
-        off= (mx>>1) + ((my>>1) + (mb_x&7))*s->uvlinesize + 64;
-        s->dsp.prefetch(src[1]+off, src[2]-src[1], 2);
-    }
+    int mx = mb->mv.x + x_off + 8;
+    int my = mb->mv.y + 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);
+    off= (mx>>1) + ((my>>1) + (mb_x&7))*s->uvlinesize + 64;
+    s->dsp.prefetch(src[1]+off, src[2]-src[1], 2);
 }
 
 /**



More information about the ffmpeg-cvslog mailing list