diff mbox series

[FFmpeg-devel,23/60] fftools/ffmpeg_demux: narrow variable scope

Message ID D41CE2FHWS0W.326VFUGYLUT2F@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing | expand

Commit Message

Marvin Scholz Sept. 8, 2024, 8:27 p.m. UTC
---
 fftools/ffmpeg_demux.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Anton Khirnov Sept. 13, 2024, 10:01 a.m. UTC | #1
Quoting Marvin Scholz (2024-09-08 22:27:44)
> ---
>  fftools/ffmpeg_demux.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Ok
diff mbox series

Patch

diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 18938f1f12..0b639f2b60 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1888,9 +1888,7 @@  int ifile_open(const OptionsContext *o, const char *filename, Scheduler *sch)
         return ret;
 
     for (int i = 0; i < o->dump_attachment.nb_opt; i++) {
-        int j;
-
-        for (j = 0; j < f->nb_streams; j++) {
+        for (int j = 0; j < f->nb_streams; j++) {
             InputStream *ist = f->streams[j];
 
             if (check_stream_specifier(ic, ist->st, o->dump_attachment.opt[i].specifier) == 1) {