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

michael subversion
Sat Feb 13 14:28:04 CET 2010


Author: michael
Date: Sat Feb 13 14:28:04 2010
New Revision: 21791

Log:
Simplify if()

Modified:
   trunk/libavcodec/h264_direct.c

Modified: trunk/libavcodec/h264_direct.c
==============================================================================
--- trunk/libavcodec/h264_direct.c	Sat Feb 13 14:14:07 2010	(r21790)
+++ trunk/libavcodec/h264_direct.c	Sat Feb 13 14:28:04 2010	(r21791)
@@ -207,7 +207,7 @@ static void pred_spatial_direct_motion(H
         sub_mb_type |= MB_TYPE_L0L1;
     }
 
-    if(!is_b8x8 && (mv[0]|mv[1]) == 0){
+    if(!(is_b8x8|mv[0]|mv[1])){
         fill_rectangle(&h->ref_cache[0][scan8[0]], 4, 4, 8, (uint8_t)ref[0], 1);
         fill_rectangle(&h->ref_cache[1][scan8[0]], 4, 4, 8, (uint8_t)ref[1], 1);
         fill_rectangle(&h->mv_cache[0][scan8[0]], 4, 4, 8, 0, 4);



More information about the ffmpeg-cvslog mailing list