From d65d8f934d8b66509f20ff279d7343ffc90f01d8 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 27 Apr 2025 20:25:21 +0200 Subject: [PATCH 6/7] avcodec/apv_decode: Fix shadowing Signed-off-by: Andreas Rheinhardt --- libavcodec/apv_decode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/apv_decode.c b/libavcodec/apv_decode.c index e28bc29c8f..3b638795ea 100644 --- a/libavcodec/apv_decode.c +++ b/libavcodec/apv_decode.c @@ -313,11 +313,11 @@ static int apv_decode_metadata(AVCodecContext *avctx, AVFrame *frame, return err; if (mdm) { - for (int i = 0; i < 3; i++) { - mdm->display_primaries[i][0] = - av_make_q(mdcv->primary_chromaticity_x[i], 1 << 16); - mdm->display_primaries[i][1] = - av_make_q(mdcv->primary_chromaticity_y[i], 1 << 16); + for (int j = 0; j < 3; j++) { + mdm->display_primaries[j][0] = + av_make_q(mdcv->primary_chromaticity_x[j], 1 << 16); + mdm->display_primaries[j][1] = + av_make_q(mdcv->primary_chromaticity_y[j], 1 << 16); } mdm->white_point[0] = -- 2.45.2