aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2024-09-08 22:27:44 +0200
committerMarvin Scholz <epirat07@gmail.com>2024-09-13 19:41:23 +0200
commitdd002f1588eff035ba1a7903f5b0520859852234 (patch)
treea6db8cf9def90fa5cb23e79607af11cb4f20d6d5
parent0753d176649acf8ad352221fbfdbafd67e61fb0c (diff)
downloadffmpeg-dd002f1588eff035ba1a7903f5b0520859852234.tar.gz
fftools/ffmpeg_demux: narrow variable scope
-rw-r--r--fftools/ffmpeg_demux.c4
1 files changed, 1 insertions, 3 deletions
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) {