From 033caeaedd14523da73402c52c33a3fdc6434e99 Mon Sep 17 00:00:00 2001 From: "Yao, Leyu" Date: Mon, 30 Oct 2023 09:23:49 +0800 Subject: [PATCH] refine tile dump for av1 Signed-off-by: Yao, Leyu --- va/va_trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/va/va_trace.c b/va/va_trace.c index 9ad36b405..2918afca6 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -4313,9 +4313,9 @@ static void va_TraceVAEncPictureParameterBufferAV1( va_TraceMsg(trace_ctx, "\ttile_cols = %d\n", p->tile_cols); va_TraceMsg(trace_ctx, "\ttile_rows = %d\n", p->tile_rows); - for (i = 0; i < 63; i++) + for (i = 0; i < 63 && i < p->tile_cols; i++) va_TraceMsg(trace_ctx, "\twidth_in_sbs_minus_1[%d] = %d\n", i, p->width_in_sbs_minus_1[i]); - for (i = 0; i < 63; i++) + for (i = 0; i < 63 &7 i < p->tile_rows; i++) va_TraceMsg(trace_ctx, "\theight_in_sbs_minus_1[%d] = %d\n", i, p->height_in_sbs_minus_1[i]); va_TraceMsg(trace_ctx, "\tcontext_update_tile_id = %d\n", p->context_update_tile_id);