[FFmpeg-cvslog] fftools/ffmpeg_opt: fix variable shadowing

Marvin Scholz git at videolan.org
Fri Sep 13 01:36:08 EEST 2024


ffmpeg | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Sep  8 19:14:10 2024 +0200| [990b80c004baa921212ee6b900d4a56c86cd9e8d] | committer: Marvin Scholz

fftools/ffmpeg_opt: fix variable shadowing

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

 fftools/ffmpeg_opt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 3cbf0795ac..1aa187f706 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -87,8 +87,6 @@ int recast_media = 0;
 
 static void uninit_options(OptionsContext *o)
 {
-    int i;
-
     /* all OPT_SPEC and OPT_TYPE_STRING can be freed in generic way */
     for (const OptionDef *po = options; po->name; po++) {
         void *dst;
@@ -112,11 +110,11 @@ static void uninit_options(OptionsContext *o)
             av_freep(dst);
     }
 
-    for (i = 0; i < o->nb_stream_maps; i++)
+    for (int i = 0; i < o->nb_stream_maps; i++)
         av_freep(&o->stream_maps[i].linklabel);
     av_freep(&o->stream_maps);
 
-    for (i = 0; i < o->nb_attachments; i++)
+    for (int i = 0; i < o->nb_attachments; i++)
         av_freep(&o->attachments[i]);
     av_freep(&o->attachments);
 



More information about the ffmpeg-cvslog mailing list