# HG changeset patch # User michael # Date 1264882057 0 # Node ID 40b84645b089b7b06e7fb167e915b8a82c50008f # Parent daff451753334c5b202300f4853ff33ffdba3d7c Split first reference list comparission from mv comparission. about 0.5% faster MBAFF loop filtering diff -r daff45175333 -r 40b84645b089 h264_loopfilter.c --- a/h264_loopfilter.c Sat Jan 30 19:26:47 2010 +0000 +++ b/h264_loopfilter.c Sat Jan 30 20:07:37 2010 +0000 @@ -418,9 +418,10 @@ static int check_mv(H264Context *h, long b_idx, long bn_idx, int mvy_limit){ int v; - v = h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx] | - h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U | - FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit; + v= h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx]; + if(!v && h->ref_cache[0][b_idx]!=-1) + v= h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U | + FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit; if(h->list_count==2){ if(!v)