Mesa (pipe-video): vl: Check mo_type not mb_type when setting motion vectors.

Younes Manton ymanton at kemper.freedesktop.org
Sun Jun 6 17:32:55 UTC 2010


Module: Mesa
Branch: pipe-video
Commit: 156fbb9fc530cd2a1d57dc516f67e720ce7f2238
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=156fbb9fc530cd2a1d57dc516f67e720ce7f2238

Author: Younes Manton <younes.m at gmail.com>
Date:   Mon May 31 00:35:20 2010 -0400

vl: Check mo_type not mb_type when setting motion vectors.

---

 src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
index fa7028b..e9024e4 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
@@ -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;




More information about the mesa-commit mailing list