vl: Check mo_type not mb_type when setting motion vectors.
authorYounes Manton <younes.m@gmail.com>
Mon, 31 May 2010 04:35:20 +0000 (00:35 -0400)
committerYounes Manton <younes.m@gmail.com>
Mon, 31 May 2010 04:35:20 +0000 (00:35 -0400)
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c

index fa7028b5d3bb6ab1c7024480dfbb3aaff4914d11..e9024e4a409228b0ae72bb675d85dc8fae4cca5d 100644 (file)
@@ -886,7 +886,7 @@ gen_macroblock_verts(struct vl_mpeg12_mc_renderer *r,
             }
          }
 
-         if (mb->mb_type == PIPE_MPEG12_MOTION_TYPE_FRAME) {
+         if (mb->mo_type == PIPE_MPEG12_MOTION_TYPE_FRAME) {
             for (i = 0; i < 24 * 2; i += 2) {
                vb[i].x = mo_vec[0].x;
                vb[i].y = mo_vec[0].y;