[FFmpeg-cvslog] r21661 - trunk/libavcodec/h264_direct.c

michael subversion
Sun Feb 7 02:13:56 CET 2010


Author: michael
Date: Sun Feb  7 02:13:56 2010
New Revision: 21661

Log:
ref_offset must be added after checking references validity.

Modified:
   trunk/libavcodec/h264_direct.c

Modified: trunk/libavcodec/h264_direct.c
==============================================================================
--- trunk/libavcodec/h264_direct.c	Sun Feb  7 00:25:10 2010	(r21660)
+++ trunk/libavcodec/h264_direct.c	Sun Feb  7 02:13:56 2010	(r21661)
@@ -434,9 +434,9 @@ single_col:
                     continue;
                 }
 
-                ref0 = l1ref0[x8 + y8*b8_stride] + ref_offset;
+                ref0 = l1ref0[x8 + y8*b8_stride];
                 if(ref0 >= 0)
-                    ref0 = map_col_to_list0[0][ref0];
+                    ref0 = map_col_to_list0[0][ref0 + ref_offset];
                 else{
                     ref0 = map_col_to_list0[1][l1ref1[x8 + y8*b8_stride] + ref_offset];
                     l1mv= l1mv1;



More information about the ffmpeg-cvslog mailing list