aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-19 09:53:57 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-28 10:47:59 +0200
commit6abb4a28ef8309ff49cea2b81d3a8e8f38fbc6f7 (patch)
treebf154c112e000b97eccb2d81883c0f389d4db9df /fftools/ffmpeg.c
parentcad59cccafd07eaeae05009dbf2f7058ee9d5254 (diff)
downloadffmpeg-6abb4a28ef8309ff49cea2b81d3a8e8f38fbc6f7.tar.gz
fftools/ffmpeg: add InputStream.index
This allows to avoid access to the underlying AVStream in many places.
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 1fc13b3e29..0539a45856 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -539,7 +539,7 @@ OutputStream *ost_iter(OutputStream *prev)
InputStream *ist_iter(InputStream *prev)
{
int if_idx = prev ? prev->file_index : 0;
- int ist_idx = prev ? prev->st->index + 1 : 0;
+ int ist_idx = prev ? prev->index + 1 : 0;
for (; if_idx < nb_input_files; if_idx++) {
InputFile *f = input_files[if_idx];
@@ -937,7 +937,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->st->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);
@@ -967,7 +967,7 @@ static void print_stream_maps(void)
av_log(NULL, AV_LOG_INFO, " Stream #%d:%d -> #%d:%d",
ost->ist->file_index,
- ost->ist->st->index,
+ ost->ist->index,
ost->file_index,
ost->index);
if (ost->enc_ctx) {