changeset 8363:7c36f4ce172c libavcodec

Replace != 0 || check by | 3 cpu cycles faster
author michael
date Wed, 17 Dec 2008 02:53:03 +0000
parents 156137b60026
children 4a01f7144da5
files h264.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Dec 17 02:35:14 2008 +0000
+++ b/h264.c	Wed Dec 17 02:53:03 2008 +0000
@@ -6383,8 +6383,8 @@
                 int b_idx= 8 + 4 + x + 8*y;
                 int bn_idx= b_idx - (dir ? 8:1);
 
-                if( h->non_zero_count_cache[b_idx] != 0 ||
-                    h->non_zero_count_cache[bn_idx] != 0 ) {
+                if( h->non_zero_count_cache[b_idx] |
+                    h->non_zero_count_cache[bn_idx] ) {
                     bS[i] = 2;
                 }
                 else if(!mv_done)