aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-12-13 18:39:02 +0100
committerAnton Khirnov <anton@khirnov.net>2023-12-14 20:16:53 +0100
commit0fcea80b2a328f6fd8fc7403e46b18a6e37d6c86 (patch)
treef944d1aca6bffbd84d3f46b13ac9963d4c96c45f /fftools/ffmpeg.c
parent84201d8af6255ddfbeffa38afd51f0ecf742390b (diff)
downloadffmpeg-0fcea80b2a328f6fd8fc7403e46b18a6e37d6c86.tar.gz
fftools/ffmpeg: replace InputStream.file_index by a pointer
Reduces the need to use the input_files global array.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 42e675dcb9..567afbadad 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -390,7 +390,7 @@ OutputStream *ost_iter(OutputStream *prev)
InputStream *ist_iter(InputStream *prev)
{
- int if_idx = prev ? prev->file_index : 0;
+ int if_idx = prev ? prev->file->index : 0;
int ist_idx = prev ? prev->index + 1 : 0;
for (; if_idx < nb_input_files; if_idx++) {
@@ -767,7 +767,7 @@ static void print_stream_maps(void)
for (int j = 0; j < ist->nb_filters; j++) {
if (!filtergraph_is_simple(ist->filters[j]->graph)) {
av_log(NULL, AV_LOG_INFO, " Stream #%d:%d (%s) -> %s",
- ist->file_index, ist->index, ist->dec ? ist->dec->name : "?",
+ ist->file->index, ist->index, ist->dec ? ist->dec->name : "?",
ist->filters[j]->name);
if (nb_filtergraphs > 1)
av_log(NULL, AV_LOG_INFO, " (graph %d)", ist->filters[j]->graph->index);
@@ -796,7 +796,7 @@ static void print_stream_maps(void)
}
av_log(NULL, AV_LOG_INFO, " Stream #%d:%d -> #%d:%d",
- ost->ist->file_index,
+ ost->ist->file->index,
ost->ist->index,
ost->file_index,
ost->index);