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

michael subversion
Mon Feb 15 02:24:50 CET 2010


Author: michael
Date: Mon Feb 15 02:24:50 2010
New Revision: 21829

Log:
10l use pack16to32(), should fix big endian h264 failures.

Modified:
   trunk/libavcodec/h264_direct.c

Modified: trunk/libavcodec/h264_direct.c
==============================================================================
--- trunk/libavcodec/h264_direct.c	Mon Feb 15 02:04:07 2010	(r21828)
+++ trunk/libavcodec/h264_direct.c	Mon Feb 15 02:24:50 2010	(r21829)
@@ -178,8 +178,8 @@ static void pred_spatial_direct_motion(H
 
             int match_count= (left_ref==ref[list]) + (top_ref==ref[list]) + (refc==ref[list]);
             if(match_count > 1){ //most common
-                mv[list]= (mid_pred(A[0], B[0], C[0])&0xFFFF)
-                         +(mid_pred(A[1], B[1], C[1])<<16);
+                mv[list]= pack16to32(mid_pred(A[0], B[0], C[0]),
+                                     mid_pred(A[1], B[1], C[1]) );
             }else {
                 assert(match_count==1);
                 if(left_ref==ref[list]){



More information about the ffmpeg-cvslog mailing list