• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisión2e90a47d9ec2c28907d5530fccb1de04bf715c14 (tree)
Tiempo2014-09-09 02:17:44
AutorAustin Yuan <shengquan.yuan@inte...>
CommiterXiang, Haihao

Log Message

vatrace: fix segfault of VASurfaceAttribExternalBufferDescriptor dumpping

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit e286c3264ebf7582792ff56537dd14c9f49903cf)

Cambiar Resumen

Diferencia incremental

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -481,7 +481,7 @@ static void va_TraceSurfaceAttributes(
481481 break;
482482 case VAGenericValueTypePointer:
483483 va_TraceMsg(trace_ctx, "\t\tvalue.value.p = %p\n", p->value.value.p);
484- if (type == VASurfaceAttribExternalBufferDescriptor) {
484+ if ((p->type == VASurfaceAttribExternalBufferDescriptor) && p->value.value.p) {
485485 VASurfaceAttribExternalBuffers *tmp = (VASurfaceAttribExternalBuffers *) p->value.value.p;
486486 int j;
487487
@@ -499,7 +499,7 @@ static void va_TraceSurfaceAttributes(
499499 va_TraceMsg(trace_ctx, "\t\t num_buffers=0x%08x\n", tmp->num_buffers);
500500 va_TraceMsg(trace_ctx, "\t\t buffers=%p\n", tmp->buffers);
501501 for (j = 0; j < tmp->num_buffers; j++) {
502- va_TraceMsg(trace_ctx, "\t\t\tbuffers[%j]=%p\n", tmp->buffers[j]);
502+ va_TraceMsg(trace_ctx, "\t\t\tbuffers[%d]=%p\n", j, tmp->buffers[j]);
503503 }
504504 }
505505 break;