Revision a59b9ee3

View differences:

libavcodec/h264_cabac.c
1447 1447
                h->ref_cache[1][scan8[4]] =
1448 1448
                h->ref_cache[0][scan8[12]] =
1449 1449
                h->ref_cache[1][scan8[12]] = PART_NOT_AVAILABLE;
1450
                if( h->ref_count[0] > 1 || h->ref_count[1] > 1 ) {
1451 1450
                    for( i = 0; i < 4; i++ )
1452
                        if( IS_DIRECT(h->sub_mb_type[i]) )
1453
                            fill_rectangle( &h->direct_cache[scan8[4*i]], 2, 2, 8, MB_TYPE_DIRECT2>>1, 1 );
1454
                }
1451
                        fill_rectangle( &h->direct_cache[scan8[4*i]], 2, 2, 8, (h->sub_mb_type[i]>>1)&0xFF, 1 );
1455 1452
            }
1456 1453
        } else {
1457 1454
            for( i = 0; i < 4; i++ ) {

Also available in: Unified diff