Revision 26468148

View differences:

libavcodec/h264_loopfilter.c
418 418
static int check_mv(H264Context *h, long b_idx, long bn_idx, int mvy_limit){
419 419
    int v;
420 420

  
421
    v = h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx] |
422
        h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
423
        FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
421
    v= h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx];
422
    if(!v && h->ref_cache[0][b_idx]!=-1)
423
        v= h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
424
           FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
424 425

  
425 426
    if(h->list_count==2){
426 427
        if(!v)

Also available in: Unified diff