Revision fabd704b libavcodec/h264_loopfilter.c

View differences:

libavcodec/h264_loopfilter.c
430 430
    v = h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx] |
431 431
        h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U |
432 432
        FFABS( h->mv_cache[0][b_idx][1] - h->mv_cache[0][bn_idx][1] ) >= mvy_limit;
433
    if(h->list_count==2 && !v)
433

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

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

  
450 453
    return v;
451 454
}

Also available in: Unified diff