Revision 0a6baf39

View differences:

libavcodec/mpeg12.c
672 672
            }
673 673
        }
674 674
    }
675
    if(s->mb_x==-1 /* first MB in a slice */ && s->mb_incr>1){
676
        s->mb_x+= (s->mb_incr - 1) % s->mb_width;
677
        s->mb_y+= (s->mb_incr - 1) / s->mb_width;
678
        s->mb_incr= 1;
679
    }
680

  
675 681
    if (++s->mb_x >= s->mb_width) {
676 682
        s->mb_x = 0;
677 683
        if (s->mb_y >= (s->mb_height - 1)){

Also available in: Unified diff