ffmpeg | branch: master | Marvin Scholz <epira...@gmail.com> | Sun Sep  8 
22:27:44 2024 +0200| [dd002f1588eff035ba1a7903f5b0520859852234] | committer: 
Marvin Scholz

fftools/ffmpeg_demux: narrow variable scope

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

 fftools/ffmpeg_demux.c | 4 +---
 1 file changed, 1 insertion(+), 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) {

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to