Revision 137c8468 libavcodec/mpeg12.c

View differences:

libavcodec/mpeg12.c
2324 2324
            return -1;
2325 2325

  
2326 2326
        if(s->current_picture.motion_val[0] && !s->encoding){ //note motion_val is normally NULL unless we want to extract the MVs
2327
            const int wrap = field_pic ? 2*s->block_wrap[0] : s->block_wrap[0];
2328
            int xy = s->mb_x*2 + 1 + (s->mb_y*2 +1)*wrap;
2327
            const int wrap = field_pic ? 2*s->b8_stride : s->b8_stride;
2328
            int xy = s->mb_x*2 + s->mb_y*2*wrap;
2329 2329
            int motion_x, motion_y, dir, i;
2330 2330
            if(field_pic && !s->first_field)
2331 2331
                xy += wrap/2;

Also available in: Unified diff