kumquat-buildroot/package/libva/0001-va-va_trace-unbreak-with-C89-after-b369467.patch

36 lines
1.7 KiB
Diff
Raw Normal View History

From 6724011e8b52901f13dded130f0b47e8bdbd4dda Mon Sep 17 00:00:00 2001
From: Jan Beich <jbeich@FreeBSD.org>
Date: Wed, 10 Apr 2019 11:37:28 +0000
Subject: [PATCH] va/va_trace: unbreak with C89 after b3694671c784
va/va_trace.c: In function 'va_TraceVAEncMiscParameterBuffer':
va/va_trace.c:3281: error: 'for' loop initial declaration used outside C99 mode
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Retrieved from:
https://github.com/intel/libva/commit/6724011e8b52901f13dded130f0b47e8bdbd4dda]
---
va/va_trace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/va/va_trace.c b/va/va_trace.c
index 0a17e5cd..d41f62c1 100755
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -3271,6 +3271,7 @@ static void va_TraceVAEncMiscParameterBuffer(
}
case VAEncMiscParameterTypeROI:
{
+ int i;
VAEncMiscParameterBufferROI *p = (VAEncMiscParameterBufferROI *)tmp->data;
va_TraceMsg(trace_ctx, "\t--VAEncMiscParameterBufferROI\n");
@@ -3278,7 +3279,7 @@ static void va_TraceVAEncMiscParameterBuffer(
va_TraceMsg(trace_ctx, "\tmax_delta_qp = %d\n", p->max_delta_qp);
va_TraceMsg(trace_ctx, "\tmin_delta_qp = %d\n", p->min_delta_qp);
va_TraceMsg(trace_ctx, "\troi_flags.bits.roi_value_is_qp_delta = %d\n", p->roi_flags.bits.roi_value_is_qp_delta);
- for (int i = 0; i < p->num_roi; i++) {
+ for (i = 0; i < p->num_roi; i++) {
va_TraceMsg(trace_ctx, "\troi[%d].roi_rectangle.x = %d\n", i, p->roi[i].roi_rectangle.x);
va_TraceMsg(trace_ctx, "\troi[%d].roi_rectangle.y = %d\n", i, p->roi[i].roi_rectangle.y);
va_TraceMsg(trace_ctx, "\troi[%d].roi_rectangle.width = %d\n", i, p->roi[i].roi_rectangle.width);