diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-13 13:28:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-13 13:28:04 +0000 |
commit | 5134ad53ed07117f14ab192e059da0b1bb7c017a (patch) | |
tree | be8336913862128f60a9447faa8b1d5213e37b5b | |
parent | 752cc0dcb2b47f9fcd7efc73d3f7bcd1a53f3c8e (diff) | |
download | ffmpeg-5134ad53ed07117f14ab192e059da0b1bb7c017a.tar.gz |
Simplify if()
Originally committed as revision 21791 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264_direct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c index 0c08e1de63..bf944a1f39 100644 --- a/libavcodec/h264_direct.c +++ b/libavcodec/h264_direct.c @@ -207,7 +207,7 @@ static void pred_spatial_direct_motion(H264Context * const h, int *mb_type){ 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); |