changeset 8454:bc5f446ed4a8 libavcodec

Optimize pred_pskip_motion() 7 cpu cycles faster on pentium dual.
author michael
date Wed, 24 Dec 2008 03:23:38 +0000
parents c78334e57b52
children aedda304862c
files h264.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Tue Dec 23 22:06:16 2008 +0000
+++ b/h264.c	Wed Dec 24 03:23:38 2008 +0000
@@ -873,8 +873,8 @@
     tprintf(h->s.avctx, "pred_pskip: (%d) (%d) at %2d %2d\n", top_ref, left_ref, h->s.mb_x, h->s.mb_y);
 
     if(top_ref == PART_NOT_AVAILABLE || left_ref == PART_NOT_AVAILABLE
-       || (top_ref == 0  && *(uint32_t*)h->mv_cache[0][ scan8[0] - 8 ] == 0)
-       || (left_ref == 0 && *(uint32_t*)h->mv_cache[0][ scan8[0] - 1 ] == 0)){
+       || !( top_ref | *(uint32_t*)h->mv_cache[0][ scan8[0] - 8 ])
+       || !(left_ref | *(uint32_t*)h->mv_cache[0][ scan8[0] - 1 ])){
 
         *mx = *my = 0;
         return;