[Libva] [PATCH 3/4] i965_drv_video: fix subpicture scale factor for Y axis.

Gwenole Beauchesne gb.devel at gmail.com
Mon Jun 27 21:42:44 PDT 2011


From: Gwenole Beauchesne <gwenole.beauchesne at intel.com>

---
 i965_drv_video/i965_render.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/i965_drv_video/i965_render.c b/i965_drv_video/i965_render.c
index c7c5f7b..2cd5a14 100644
--- a/i965_drv_video/i965_render.c
+++ b/i965_drv_video/i965_render.c
@@ -898,7 +898,7 @@ i965_subpic_render_upload_vertex(VADriverContextP ctx,
     }
     else {
         dst_rect.x      = output_rect->x + sx * obj_subpic->dst_rect.x;
-        dst_rect.y      = output_rect->y + sx * obj_subpic->dst_rect.y;
+        dst_rect.y      = output_rect->y + sy * obj_subpic->dst_rect.y;
         dst_rect.width  = sx * obj_subpic->dst_rect.width;
         dst_rect.height = sy * obj_subpic->dst_rect.height;
     }
-- 
1.7.4.1



More information about the Libva mailing list