Revision 948180e7 libavcodec/h264_loopfilter.c

View differences:

libavcodec/h264_loopfilter.c
459 459

  
460 460
        for(j=0; j<2; j++, mbn_xy += s->mb_stride){
461 461
            if( IS_INTRA(mb_type|s->current_picture.mb_type[mbn_xy]) ) {
462
                bS[0] = bS[1] = bS[2] = bS[3] = 3;
462
                *(uint64_t*)bS= 0x0003000300030003ULL;
463 463
            } else {
464 464
                const uint8_t *mbn_nnz = h->non_zero_count[mbn_xy];
465 465
                for( i = 0; i < 4; i++ ) {
......
509 509
            int mv_done;
510 510

  
511 511
            if( edge & mask_edge ) {
512
                bS[0] = bS[1] = bS[2] = bS[3] = 0;
512
                *(uint64_t*)bS= 0;
513 513
                mv_done = 1;
514 514
            }
515 515
            else if( FRAME_MBAFF && IS_INTERLACED(mb_type ^ mbn_type)) {
516
                bS[0] = bS[1] = bS[2] = bS[3] = 1;
516
                *(uint64_t*)bS= 0x0001000100010001ULL;
517 517
                mv_done = 1;
518 518
            }
519 519
            else if( mask_par0 && (edge || (mbn_type & (MB_TYPE_16x16 | (MB_TYPE_8x16 >> dir)))) ) {
......
641 641
        first_vertical_edge_done = 1;
642 642

  
643 643
        if( IS_INTRA(mb_type) )
644
            bS[0] = bS[1] = bS[2] = bS[3] = bS[4] = bS[5] = bS[6] = bS[7] = 4;
644
            *(uint64_t*)&bS[0]=
645
            *(uint64_t*)&bS[4]= 0x0004000400040004ULL;
645 646
        else {
646 647
            for( i = 0; i < 8; i++ ) {
647 648
                int mbn_xy = MB_FIELD ? left_mb_xy[i>>2] : left_mb_xy[i&1];

Also available in: Unified diff