Replace != 0 || check by |
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Dec 2008 02:53:03 +0000 (02:53 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Dec 2008 02:53:03 +0000 (02:53 +0000)
3 cpu cycles faster

Originally committed as revision 16183 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 0992262..1b32645 100644 (file)
@@ -6383,8 +6383,8 @@ static void av_always_inline filter_mb_dir(H264Context *h, int mb_x, int mb_y, u
                 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)