diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-09-24 09:15:38 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-09-30 09:29:18 +0200 |
commit | 8e805b9c3cab76383cace0a83c6bb66192282b05 (patch) | |
tree | 57c3b7b094016db9b41ae8952e71bcb09931cf86 | |
parent | df9b80d21a25e06992c3a3aa87b5703404942b08 (diff) | |
download | ffmpeg-8e805b9c3cab76383cace0a83c6bb66192282b05.tar.gz |
fftools/ffmpeg_demux: drop InputStream.[nb_]outputs
It is write-only after d119ae2fd82a494d9430ff4d4fc262961a68c598.
-rw-r--r-- | fftools/ffmpeg.h | 8 | ||||
-rw-r--r-- | fftools/ffmpeg_demux.c | 7 |
2 files changed, 0 insertions, 15 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h index b5c95439e5..13e0fd14cd 100644 --- a/fftools/ffmpeg.h +++ b/fftools/ffmpeg.h @@ -463,14 +463,6 @@ typedef struct InputStream { * currently video and audio only */ InputFilter **filters; int nb_filters; - - /* - * Output targets that do not go through lavfi, i.e. subtitles or - * streamcopy. Those two cases are distinguished by the OutputStream - * having an encoder or not. - */ - struct OutputStream **outputs; - int nb_outputs; } InputStream; typedef struct InputFile { diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c index 13aef15eab..9a3ae67e3a 100644 --- a/fftools/ffmpeg_demux.c +++ b/fftools/ffmpeg_demux.c @@ -840,7 +840,6 @@ static void ist_free(InputStream **pist) av_dict_free(&ds->decoder_opts); av_freep(&ist->filters); - av_freep(&ist->outputs); av_freep(&ds->dec_opts.hwaccel_device); avcodec_parameters_free(&ist->par); @@ -985,12 +984,6 @@ int ist_output_add(InputStream *ist, OutputStream *ost) if (ret < 0) return ret; - ret = GROW_ARRAY(ist->outputs, ist->nb_outputs); - if (ret < 0) - return ret; - - ist->outputs[ist->nb_outputs - 1] = ost; - return ost->enc ? ds->sch_idx_dec : ds->sch_idx_stream; } |