summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-17 02:53:03 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-17 02:53:03 +0000
commit4080e67c8e4528684b44e6cf5d0bc4ee4053f87a (patch)
tree249d33803c948994402eea78da503af13fee27ec /libavcodec
parentad9ca7e720384d858616d71641365010cd43eee6 (diff)
Replace != 0 || check by |
3 cpu cycles faster Originally committed as revision 16183 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 09922620b4..1b32645615 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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)