[FFmpeg-cvslog] avcodec/apv_decode: Fix shadowing

Andreas Rheinhardt git at videolan.org
Mon Apr 28 00:13:30 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Apr 27 20:25:21 2025 +0200| [e2fcf234e462277d402bf087d514fd08636507a2] | committer: Andreas Rheinhardt

avcodec/apv_decode: Fix shadowing

Reviewed-by: Mark Thompson <sw at jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2fcf234e462277d402bf087d514fd08636507a2
---

 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] =



More information about the ffmpeg-cvslog mailing list