summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-07-19 10:04:54 -0700
committerXiang, Haihao <haihao.xiang@intel.com>2016-07-22 14:02:50 +0800
commita77556ca48f977b89eab9d3f9b965d1a78e6bacb (patch)
tree8debed00841f9811b5fe94bc32c2a0d6f4b7466b
parentbcde10dac40cbc4c8502fa519404c9379372184b (diff)
i965_drv: fix cb_cr_height for YUV422 formats
YUV422 has full vertical chroma resolution, not half. Signed-off-by: Scott D Phillips <scott.d.phillips@intel.com>
-rw-r--r--src/i965_drv_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index ad48f22..ec67848 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -4118,7 +4118,7 @@ i965_check_alloc_surface_bo(VADriverContextP ctx,
obj_surface->y_cb_offset = 0;
obj_surface->y_cr_offset = 0;
obj_surface->cb_cr_width = obj_surface->orig_width / 2;
- obj_surface->cb_cr_height = obj_surface->orig_height / 2;
+ obj_surface->cb_cr_height = obj_surface->orig_height;
region_width = obj_surface->width;
region_height = obj_surface->height;