Revision d753173a libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
633 633
        s->mv_type = MV_TYPE_16X16;
634 634
        s->last_mv[0][0][0] = 0;
635 635
        s->last_mv[0][0][1] = 0;
636
        s->last_mv[0][1][0] = 0;
637
        s->last_mv[0][1][1] = 0;
636 638
        s->mv[0][0][0] = 0;
637 639
        s->mv[0][0][1] = 0;
638 640
    } else if (mb_type & (MB_FOR | MB_BACK)) {
......
641 643
        for(i=0;i<2;i++) {
642 644
            if (mb_type & (MB_FOR >> i)) {
643 645
                s->mv_dir |= (MV_DIR_FORWARD >> i);
644
                dprintf("mv_type=%d\n", motion_type);
646
                dprintf("motion_type=%d\n", motion_type);
645 647
                switch(motion_type) {
646 648
                case MT_FRAME: /* or MT_16X8 */
647 649
                    if (s->picture_structure == PICT_FRAME) {
......
1006 1008
        scan_table = ff_alternate_vertical_scan;
1007 1009
    else
1008 1010
        scan_table = zigzag_direct;
1009
    mismatch = 1;
1010 1011

  
1011 1012
    /* DC coef */
1012 1013
    component = (n <= 3 ? 0 : n - 4 + 1);
......
1018 1019
    s->last_dc[component] = dc;
1019 1020
    block[0] = dc << (3 - s->intra_dc_precision);
1020 1021
    dprintf("dc=%d\n", block[0]);
1022
    mismatch = block[0] ^ 1;
1021 1023
    i = 1;
1022 1024
    if (s->intra_vlc_format)
1023 1025
        rl = &rl_mpeg2;

Also available in: Unified diff