summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2010-06-02 09:10:27 +0200
committerAustin Yuan <shengquan.yuan@gmail.com>2010-06-02 17:23:28 +0800
commit82936d2e40fbfcacea798006a3d903cb5ff7f04f (patch)
treee6eb2b51ac3cec7811b5f1e5aa87afc4889699ec
parent6d48575630506e4bcd68142fb5737950bb5277ca (diff)
downloadlibva-82936d2e40fbfcacea798006a3d903cb5ff7f04f.tar.gz
Don't dump VA surface pixels if driver doesn't return VA surface buffer.
-rw-r--r--va/va_trace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/va/va_trace.c b/va/va_trace.c
index 7f09908..1713f27 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -1078,13 +1078,14 @@ int va_TraceEndPicture(
va_TraceMsg("\tchroma_u_offset=%d\n", chroma_u_offset);
va_TraceMsg("\tchroma_v_offset=%d\n", chroma_v_offset);
- va_TraceMsg("**Y data**\n");
+ if (!buffer)
+ return;
Y_data = buffer;
UV_data = buffer + luma_offset;
tmp = Y_data;
-
+ va_TraceMsg("**Y data**\n");
for (i=0; i<trace_height; i++) {
for (j=0; j<trace_width; j++) {
if ((j%16) == 0)