[FFmpeg-soc] [soc]: r865 - dirac/libavcodec/dirac.c

marco subversion at mplayerhq.hu
Thu Aug 16 14:57:30 CEST 2007


Author: marco
Date: Thu Aug 16 14:57:30 2007
New Revision: 865

Log:
simplify check in mode prediction

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Thu Aug 16 14:57:30 2007
@@ -1203,10 +1203,7 @@ static inline int mode_prediction(DiracC
         + s->blmotion[(y - 1) * s->blwidth + x    ].use_ref[ref]
         + s->blmotion[(y - 1) * s->blwidth + x - 1].use_ref[ref];
 
-    if (cnt >= 2)
-        return 1;
-    else
-        return 0;
+    return cnt >> 1;
 }
 
 /**



More information about the FFmpeg-soc mailing list