changeset 11143:8bfe0dae50b2 libavcodec

Simplify if()
author michael
date Sat, 13 Feb 2010 13:28:04 +0000
parents 50eadf65efb7
children 0f7dcfca7b2e
files h264_direct.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264_direct.c	Sat Feb 13 13:14:07 2010 +0000
+++ b/h264_direct.c	Sat Feb 13 13:28:04 2010 +0000
@@ -207,7 +207,7 @@
         sub_mb_type |= MB_TYPE_L0L1;
     }
 
-    if(!is_b8x8 && (mv[0]|mv[1]) == 0){
+    if(!(is_b8x8|mv[0]|mv[1])){
         fill_rectangle(&h->ref_cache[0][scan8[0]], 4, 4, 8, (uint8_t)ref[0], 1);
         fill_rectangle(&h->ref_cache[1][scan8[0]], 4, 4, 8, (uint8_t)ref[1], 1);
         fill_rectangle(&h->mv_cache[0][scan8[0]], 4, 4, 8, 0, 4);