Revision 5364db28 libavcodec/h264_loopfilter.c

View differences:

libavcodec/h264_loopfilter.c
433 433

  
434 434
    if(h->list_count==2){
435 435
        if(!v)
436
        v = h->ref_cache[1][b_idx] != h->ref_cache[1][bn_idx] |
437
            h->mv_cache[1][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U |
438
            FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit;
439

  
440
    if(v){
441
        if(h->ref_cache[0][b_idx] != h->ref_cache[1][bn_idx] |
442
           h->ref_cache[1][b_idx] != h->ref_cache[0][bn_idx])
443
            return 1;
444
        return
445
           h->mv_cache[0][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U |
446
           FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit |
447
           h->mv_cache[1][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
448
           FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
449
    }
436
            v = h->ref_cache[1][b_idx] != h->ref_cache[1][bn_idx] |
437
                h->mv_cache[1][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U |
438
                FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit;
439

  
440
        if(v){
441
            if(h->ref_cache[0][b_idx] != h->ref_cache[1][bn_idx] |
442
               h->ref_cache[1][b_idx] != h->ref_cache[0][bn_idx])
443
                return 1;
444
            return
445
                h->mv_cache[0][b_idx][0] - h->mv_cache[1][bn_idx][0] + 3 >= 7U |
446
                FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[1][bn_idx][1] ) >= mvy_limit |
447
                h->mv_cache[1][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
448
                FFABS( h->mv_cache[1][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
449
        }
450 450
    }
451 451

  
452 452
    return v;

Also available in: Unified diff