From: Austin Yuan Date: Thu, 17 Oct 2013 02:42:54 +0000 (+0800) Subject: vatrace: fix UV data offset issue of LIBVA_TRACE_SURFACE_GEOMETRY X-Git-Tag: libva-1.3.0~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e26617db13e07c067d24c0c0ba63875bcd075433;p=platform%2Fupstream%2Flibva.git vatrace: fix UV data offset issue of LIBVA_TRACE_SURFACE_GEOMETRY Signed-off-by: Austin Yuan (cherry picked from commit c954ff868057e02f620470d64c1f2071e2cfbb4e) --- 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; itrace_surface_height/2; i++) { fwrite(tmp + trace_ctx->trace_surface_xoff,