summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,