[FFmpeg-cvslog] r15983 - trunk/libavcodec/rv34.c

kostya subversion
Tue Dec 2 19:14:53 CET 2008


Author: kostya
Date: Tue Dec  2 19:14:53 2008
New Revision: 15983

Log:
Fix reading out of buffer during RV30/40 deblock mask calculation

Modified:
   trunk/libavcodec/rv34.c

Modified: trunk/libavcodec/rv34.c
==============================================================================
--- trunk/libavcodec/rv34.c	(original)
+++ trunk/libavcodec/rv34.c	Tue Dec  2 19:14:53 2008
@@ -1100,7 +1100,7 @@ static int rv34_set_deblock_coef(RV34Dec
         for(i = 0; i < 2; i++){
             if(is_mv_diff_gt_3(motion_val + i, 1))
                 vmvmask |= 0x11 << (j + i*2);
-            if(is_mv_diff_gt_3(motion_val + i, s->b8_stride))
+            if((j || s->mb_y) && is_mv_diff_gt_3(motion_val + i, s->b8_stride))
                 hmvmask |= 0x03 << (j + i*2);
         }
         motion_val += s->b8_stride;




More information about the ffmpeg-cvslog mailing list