diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-06-02 09:10:27 +0200 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2010-06-02 17:23:28 +0800 |
commit | 82936d2e40fbfcacea798006a3d903cb5ff7f04f (patch) | |
tree | e6eb2b51ac3cec7811b5f1e5aa87afc4889699ec /va/va_trace.c | |
parent | 6d48575630506e4bcd68142fb5737950bb5277ca (diff) | |
download | libva-82936d2e40fbfcacea798006a3d903cb5ff7f04f.tar.gz |
Don't dump VA surface pixels if driver doesn't return VA surface buffer.
Diffstat (limited to 'va/va_trace.c')
-rw-r--r-- | va/va_trace.c | 5 |
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) |