This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 80eb9e99b9 avutil/hwcontext_cuda: fix unused variable 'i' warning
80eb9e99b9 is described below

commit 80eb9e99b93491753fc9d5bf1f8718c361131998
Author:     Zhao Zhili <[email protected]>
AuthorDate: Thu Jul 23 11:04:10 2026 +0800
Commit:     Zhao Zhili <[email protected]>
CommitDate: Thu Jul 23 11:26:15 2026 +0800

    avutil/hwcontext_cuda: fix unused variable 'i' warning
    
    The variable i is only used inside the HAVE_FFNVCODEC_CUARRAY block.
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavutil/hwcontext_cuda.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c
index b38573b04b..0ee6bb4945 100644
--- a/libavutil/hwcontext_cuda.c
+++ b/libavutil/hwcontext_cuda.c
@@ -273,7 +273,7 @@ static int cuda_frames_init(AVHWFramesContext *ctx)
     CUDAFramesContext       *priv = ctx->hwctx;
     CudaFunctions             *cu = hwctx->internal->cuda_dl;
     const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(ctx->sw_format);
-    int err, i;
+    int err;
 
     if (!desc) {
         av_log(ctx, AV_LOG_ERROR, "Invalid pixel format\n");
@@ -352,7 +352,7 @@ static int cuda_frames_init(AVHWFramesContext *ctx)
             return err;
         }
 
-        for (i = 0; i < priv->p.cuarray_num_surfaces; i++) {
+        for (int i = 0; i < priv->p.cuarray_num_surfaces; i++) {
             err = CHECK_CU(cu->cuArray3DCreate(&priv->p.cuarray_surfaces[i], 
&priv->p.cuarray_desc));
             if (err < 0) {
                 for (i = i - 1; i >= 0; i--)

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to