diff mbox series

[FFmpeg-devel,06/60] fftools/cmdutils: fix variable shadowing

Message ID D41CE2FHVG6O.4MTEPPLH9G2F@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marvin Scholz Sept. 8, 2024, 5:58 p.m. UTC
---
 fftools/cmdutils.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Anton Khirnov Sept. 9, 2024, 10:14 a.m. UTC | #1
Quoting Marvin Scholz (2024-09-08 19:58:16)
> ---
>  fftools/cmdutils.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Ok
diff mbox series

Patch

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index f725c31c12..a9a7ff4194 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -802,7 +802,7 @@  int split_commandline(OptionParseContext *octx, int argc, char *argv[],
     while (optindex < argc) {
         const char *opt = argv[optindex++], *arg;
         const OptionDef *po;
-        int ret, group_idx;
+        int group_idx;
 
         av_log(NULL, AV_LOG_DEBUG, "Reading option '%s' ...", opt);
 
@@ -1366,7 +1366,7 @@  int filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id,
 }
 
 int setup_find_stream_info_opts(AVFormatContext *s,
-                                AVDictionary *codec_opts,
+                                AVDictionary *local_codec_opts,
                                 AVDictionary ***dst)
 {
     int ret;
@@ -1382,7 +1382,7 @@  int setup_find_stream_info_opts(AVFormatContext *s,
         return AVERROR(ENOMEM);
 
     for (int i = 0; i < s->nb_streams; i++) {
-        ret = filter_codec_opts(codec_opts, s->streams[i]->codecpar->codec_id,
+        ret = filter_codec_opts(local_codec_opts, s->streams[i]->codecpar->codec_id,
                                 s, s->streams[i], NULL, &opts[i], NULL);
         if (ret < 0)
             goto fail;