Revision dc172ecc libavcodec/h264_loopfilter.c

View differences:

libavcodec/h264_loopfilter.c
650 650
        tprintf(s->avctx, "filter mb:%d/%d dir:%d edge:%d, QPy:%d ls:%d uvls:%d", mb_x, mb_y, dir, edge, qp, linesize, uvlinesize);
651 651
        //{ int i; for (i = 0; i < 4; i++) tprintf(s->avctx, " bS[%d]:%d", i, bS[i]); tprintf(s->avctx, "\n"); }
652 652
        if( dir == 0 ) {
653
            filter_mb_edgev( &img_y[4*edge], linesize, bS, qp, h );
653
            filter_mb_edgev( &img_y[4*edge*h->pixel_size], linesize, bS, qp, h );
654 654
            if( (edge&1) == 0 ) {
655
                filter_mb_edgecv( &img_cb[2*edge], uvlinesize, bS, h->chroma_qp[0], h);
656
                filter_mb_edgecv( &img_cr[2*edge], uvlinesize, bS, h->chroma_qp[1], h);
655
                filter_mb_edgecv( &img_cb[2*edge*h->pixel_size], uvlinesize, bS, h->chroma_qp[0], h);
656
                filter_mb_edgecv( &img_cr[2*edge*h->pixel_size], uvlinesize, bS, h->chroma_qp[1], h);
657 657
            }
658 658
        } else {
659 659
            filter_mb_edgeh( &img_y[4*edge*linesize], linesize, bS, qp, h );

Also available in: Unified diff