Просмотр исходного кода

fftools/ffmpeg_demux: narrow variable scope

Marvin Scholz 6 месяцев назад
Родитель
Сommit
dd002f1588
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      fftools/ffmpeg_demux.c

+ 1 - 3
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) {