summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2013-10-17 10:42:54 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-03-17 09:41:55 +0800
commite26617db13e07c067d24c0c0ba63875bcd075433 (patch)
treea1c0254070ff3ad2b8d8a7235536974592570394
parent1e497a3ae02a7f4117d746d97147193708c01f21 (diff)
vatrace: fix UV data offset issue of LIBVA_TRACE_SURFACE_GEOMETRY
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit c954ff868057e02f620470d64c1f2071e2cfbb4e)
-rw-r--r--va/va_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/va_trace.c b/va/va_trace.c
index fc1b867..4145848 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -413,7 +413,7 @@ void va_TraceSurface(VADisplay dpy)
tmp += luma_stride;
}
- tmp = UV_data + chroma_u_stride * trace_ctx->trace_surface_yoff;
+ tmp = UV_data + chroma_u_stride * trace_ctx->trace_surface_yoff / 2;
if (fourcc == VA_FOURCC_NV12) {
for (i=0; i<trace_ctx->trace_surface_height/2; i++) {
fwrite(tmp + trace_ctx->trace_surface_xoff,